0

Is there a way to have a common init.el for several system users? /etc/emacs.d/init.el for example?

1
  • How about everyone's .emacs file having a one-liner?: (load "/path/to/master/init.el" nil t t nil)
    – lawlist
    Feb 8 at 3:35
1

This is documented in chapter 49.4 The Emacs Initialization File of the Emacs manual (which is also included as part of Emacs, use C-h i to open the info browser which will show you this and many other manuals already on your computer). In short, Emacs loads both site-lisp.el and defaults.el in addition to your own startup file, and these two files may be located anywhere in the load-path. Exactly what directories end up in your load-path may vary across operating systems and distributions, but in most Linux distributions it will include a directory like /usr/share/emacs/site-lisp.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.