Is there a way to have a common init.el
for several system users?
/etc/emacs.d/init.el for example?
Asked
Active
Viewed 367 times
1

andreoss
- 149
- 4
-
How about everyone's `.emacs` file having a one-liner?: `(load "/path/to/master/init.el" nil t t nil)` – lawlist Feb 08 '21 at 03:35
1 Answers
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
.

db48x
- 15,741
- 1
- 19
- 23