Check when mu4e is already on the load path

Why do more than is needed?
This commit is contained in:
TEC 2022-12-03 01:49:54 +08:00
parent 45663014d1
commit 97ed3abedd
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 1 additions and 0 deletions

View File

@ -6731,6 +6731,7 @@ has a chance of loading. Alternatively, I may need to add the =/usr/share/= path
#+name: add-mu4e-load-path
#+begin_src emacs-lisp :noweb-ref none
(cond
((cl-some (lambda (path) (string-match-p "mu4e" path)) load-path) nil)
((file-directory-p "/usr/local/share/emacs/site-lisp/mu4e")
(quote (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")))
((file-directory-p "/usr/share/emacs/site-lisp/mu4e")