|
From: | Glenn Morris |
Subject: | Re: run/load a lisp script before user init file |
Date: | Tue, 08 Oct 2013 12:22:06 -0400 |
User-agent: | Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Jarek Czekalski wrote: > I don't think of site-start as of a library. Rather as a start-up > script. Let's go back to Debian Emacs. Why did they invent > site-start.d directory? I find what Red Hat did was better: http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00328.html Just make your site-start.el contain something like: ;; load ".el" files in "/usr/share/emacs/site-lisp/site-start.d/" on startup (mapc 'load (directory-files "/usr/share/emacs/site-lisp/site-start.d" t "\\.el\\'")) That's the only change you ever need to make to site-start.el. For everything else, add and delete to site-start.d. Emacs does not need to change for this to work.
[Prev in Thread] | Current Thread | [Next in Thread] |