Add subdirectories of /usr/local/share/emacs/site-lisp to load-path
On systems that don’t have mu/mu4e as a package (e.g. Fedora 29), it is manually installed at this place.
This commit is contained in:
parent
7b241cbd51
commit
9f69074b88
@ -51,7 +51,9 @@ Just to make sure, although most Linux DE does this for me.
|
||||
user-mail-address "gergely@polonkai.eu")
|
||||
#+END_SRC
|
||||
|
||||
* Add ~lisp/~ to ~load-path~
|
||||
* Add some directories to ~load-path~
|
||||
|
||||
** My own (version controlled) ~lisp~ directory
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-to-list 'load-path (expand-file-name
|
||||
@ -62,6 +64,20 @@ Just to make sure, although most Linux DE does this for me.
|
||||
user-emacs-directory))
|
||||
#+END_SRC
|
||||
|
||||
** The local site-lisp
|
||||
|
||||
…if it exists.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(let ((site-lisp-dir "/usr/local/share/emacs/site-lisp"))
|
||||
(when (file-directory-p site-lisp-dir)
|
||||
(dolist (elt (directory-files site-lisp-dir))
|
||||
(unless (or (string= elt ".") (string= elt ".."))
|
||||
(add-to-list 'load-path (expand-file-name elt site-lisp-dir))))))
|
||||
#+END_SRC
|
||||
|
||||
* Load some prerequisites
|
||||
|
||||
** Load ~xdg-paths~
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
Loading…
Reference in New Issue
Block a user