Put the Emacs.d/init.el file in a different directory to start

Source: Internet
Author: User

There are multiple Emacs configurations, or the EMACS.D files are often copied from one machine to another. It's a little inconvenient to put. emacs.d files in the ~/directory every time.

You can create a new ~/.emacs.d/init.el file, enter the contents, and specify the directory of the configuration file.

(package-initialize)

(Defconst user-emacs-directory
(File-name-directory (File-chase-links (expand-file-name "~/zb_conf/emacs.d.purcell/")))
"The giant turtle on which, the world rests.")
(Load-file (expand-file-name "Init.el" user-emacs-directory))

Replace "~/zb_conf/emacs.d.purcell/" with the path of your EMACS.D.

This format may be required under Windows, for example, under the D-Disk, with "//?/d:/emacs.d/"

Put the Emacs.d/init.el file in a different directory to start

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.