To resolve the new Emacs Warning: Warning (initialization): Your Load-path ...

Source: Internet
Author: User

650) this.width=650; "Src=" https://mmbiz.qlogo.cn/mmbiz/ Iahl5mqlicpyof1q77mwnlmsduk8ibvnzg6477znwnobgc1cuns9kowq4muyso4hksjbfy2d1lkrsqv98cvwamoma/0?wxfmt=png "alt=" 0? Wxfmt=png "/>



warning appears after upgrading to new Emacs


As one of the code editors for good use, Emacs has a high practical rate in the geek world. Of course, Vim also has a lot of supporters. But the small part is transferred from Vim to Emacs, the individual think Emacs better use.

Gadget recently upgraded the Fedora 20 to 21,emacs version from 24.1 to 24.4.1


As a result, when you open Emacs, an annoying warning appears:


Warning (initialization): Your ' Load-path ' seems to contain
Your '. Emacs.d ' directory: ~/.emacs.d/
This was likely to cause problems ...
Consider using a subdirectory instead, e.g.:/home/adriean/.emacs.d/lisp


The General meaning is:

Do not put the required modules in the ~/.emacs.d/directory, because this directory Emacs to put some other things, may name conflict, can cause problems.


In the past, our modules will be placed directly in the ~/.emacs.d/directory, in the Emacs configuration file. Emacs, it would look like this:


(Require ' psvn)
(Require ' Php-mode)
(Require ' saveplace)


So we have to deal with this little warning of trouble.


Workaround


If you do not want this warning to appear again, you can create a new subdirectory under ~/.emacs.d/, such as the name modules

CD ~/.emacs.d/

mkdir Modules

MV Xxxx.el modules/(move all required modules into subdirectories)

The above is to create a subdirectory, the modules we need are MV (move) to this subdirectory, and then in the
~ (your home directory) in the. emacs file, modify the beginning of the sentence:

(Add-to-list ' Load-path "~/.emacs.d/")

For

(Add-to-list ' Load-path "~/.emacs.d/modules")

You can do it.


It may be useful for you to record.


By the way I have attached my Emacs configuration file . Emacs

and three very useful modules, together in a zipped file package.


When using, remember to put the. emacs file in your home directory: ~

Put three module files (Psvn.el,php-mode.el and Saveplace) in the ~/.emacs.d/modules directory, this subdirectory needs to be created by itself

Click on the lower left corner of the " accessories " Download (in my Baidu cloud disk), you can also go to this link to download:

Http://pan.baidu.com/s/1bn74FhH


Of course you'll need to install emacs! under your Linux.


Emacs Website:

https://www.gnu.org/software/emacs/


Next time you will write an article about using and configuring Emacs, so stay tuned!


Programmer Alliance Community

There is a group and a QQ group (group of more than 120 people, QQ group of more than 290 people), all interested in programming friends can add, we can exchange, study, interaction, discuss the source code of writing programs, programming questions and so on.


How to "Scan" the QR code image on the phone?
Tips:
In the long press the picture, select "Identify the QR code", you can


Group (Programmers Alliance), Dabigatran please private me (more than 100 people, can not scan the QR code to join, only private messages me, thank you)


QQ Group (Programmer Alliance), group number is 413981577

QQ group sharing has a lot of programming books PDF and other materials. Scan the following two-dimensional code plus QQ Group:


650) this.width=650; "Src=" https://mmbiz.qlogo.cn/mmbiz/ iahl5mqlicpypia4llaulhex2dicp5cwea8oobsiap6nuiahiatyvs0qavv9eiae6o4x2y1acpuwjzdcsvt2micd4f5aewq/0 "alt=" 0 "/>

We also set up a public Baidu cloud disk, 2TB capacity, has a lot of excellent programming resources, we can also upload. After the link Dabigatran is sent.


The "Programmer Alliance" micro-community, easy to ask questions and interaction. Can take a look.

The micro-community address and QR code are as follows:

http://m.wsq.qq.com/264152148

650) this.width=650; "Src=" https://mmbiz.qlogo.cn/mmbiz/ iahl5mqlicpym1yb33wmhpyv8qqgc2beicu8ftl69qefwas9zynrewfyxbzitfw166wwn10qgy662mhgqs5qmftag/0 "alt=" 0 "/>


Thank you!


650) this.width=650; "Src=" https://mmbiz.qlogo.cn/mmbiz/ iahl5mqlicpyokjw2hkdibfa8gpx7ygunoegxqgjsp47vu9z0kacpknvkyyskdhknql9ensc34tebaqrmq4eodf4g/0 "alt=" 0 "/>


< Span style= "padding:4px 10px;line-height:1.5;font-family: ' Song Body ', Verdana, Arial, Helvetica, Sans-serif;color:rgb ( 255,255,255); Margin-right:8px;background-color:rgb (1,165,191); " > Programmer Federation Public number please click on the top right corner of the screen ... Button " share to Friend Circle " or " Send to a friend "

* new friends Please pay attention to "Programmer's Alliance" search the public number Programmerleague

Small number : frogoscar

QQ Number of small series: 379641629

Small Mailbox : [email protected]

The Programmer Alliance QQ Group: 413981577

Programmer Alliance Group: add me first.


Have friends to reflect on the mobile phone side of the article is too tired, in fact, can be viewed in the browser Web page

Method 1. In the top right corner of the screen, click the ... button, then select "Copy Link", then paste the link into your browser or email it to yourself, and you can open it in your computer's browser.


650) this.width=650; "Src=" https://mmbiz.qlogo.cn/mmbiz/ iahl5mqlicpym9nsxee4icbf5tkicgr21oowntlc1qibyz3ctj7ictlvibkicuzwxliaamd05vlv1isravlcz0ml6txflw/0 "alt=" 0 "/>


Method 2. Headline net www.toutiao.com, search my self-media "programmer alliance", there is an article, also can directly into this link: http://www.toutiao.com/m3750422747/


Method 3. My 51CTO blog and csdn blog link (all articles are on it)
http://4526621.blog.51cto.com/

Http://blog.csdn.net/frogoscar



New friends How to view all articles:

Click on "View public number" and click "View History Message"


650) this.width=650; "Src=" https://mmbiz.qlogo.cn/mmbiz/ iahl5mqlicpym9nsxee4icbf5tkicgr21oow4ictreiaa7r8cjyllianhbfaabfwbn5ow2kdnpe3ynrxgwsfmviadisomw/0 "alt=" 0 "/>


650) this.width=650; "Src=" https://mmbiz.qlogo.cn/mmbiz/ iahl5mqlicpyogyyt6vjcj1sicfwjbibeg0kt1aenagxs7498way1epmdyicbh6nhn1lezyyaytz4ntxbpx8dtgd2mw/0 "alt=" 0 "/>


" Programmer Federation "public number for programmers, app designer, You love programming and love to share the small partners to push all kinds of programming knowledge, excellent software recommendations, industry trends and so on. Search



Click below " Accessories " Download A small series of Emacs configuration files. Emacs and three modules of compressed files (you can click on the phone to open the file directly see)
↓↓↓

This article is from the "Frogoscar Thanksgiving Garden" blog, please be sure to keep this source http://4526621.blog.51cto.com/4516621/1637684

To resolve the new Emacs Warning: Warning (initialization): Your Load-path ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.