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

Source: Internet
Author: User


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.

Click on the link below to download (on my Baidu cloud disk)

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


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


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:



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


Thank you!



Programmer Union Public number * Think this article is good, please click on the top right corner of the screen "... Button " share to friends " or " Send to friend "

* New friends please pay attention to " Programmer Alliance "search 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.



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"



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.