简体   繁体   中英

how to make the configuration .emacs to be global in linux

what I mean is that I've had a .emacs file in my /home,but when I cd ,for example,/etc/profile,the configurations which are written in the .emacs make no sense.So I want to know how to make the .emacs to be global. Thank you:)

Create the file default.el and put it in one of the standard library search directories (/usr/share/lib, /usr/local/lib).

You should first check you LD_LIBRARY_PATH to find the search path for these by: echo $LD_LIBRARY_PATH

If that returns an empty string you will need to set LD_LIBRARY_PATH with something like this: export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib

In something like /etc/profile

Source: Global Emacs configuration

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM