[mu4e] Load from nix install, if available
This commit is contained in:
parent
c998ff3beb
commit
9d90a8c4ec
1 changed files with 6 additions and 3 deletions
|
@ -1949,11 +1949,14 @@ Not all distributions that I use have a enough up-to-date package of mu/maildir-
|
||||||
(defun mmk2410/mu4e-load-path ()
|
(defun mmk2410/mu4e-load-path ()
|
||||||
(let* ((mu4e-site-lisp-path "/share/emacs/site-lisp/mu4e")
|
(let* ((mu4e-site-lisp-path "/share/emacs/site-lisp/mu4e")
|
||||||
(mu4e-load-path-usr (concat "/usr" mu4e-site-lisp-path))
|
(mu4e-load-path-usr (concat "/usr" mu4e-site-lisp-path))
|
||||||
(mu4e-load-path-usr-local (concat "/usr/local" mu4e-site-lisp-path)))
|
(mu4e-load-path-usr-local (concat "/usr/local" mu4e-site-lisp-path))
|
||||||
(cond ((file-directory-p mu4e-load-path-usr)
|
(mu4e-load-path-nix (concat (getenv "HOME") "/.nix-profile" mu4e-site-lisp-path)))
|
||||||
mu4e-load-path-usr)
|
(cond ((file-directory-p mu4e-load-path-nix)
|
||||||
|
mu4e-load-path-nix)
|
||||||
((file-directory-p mu4e-load-path-usr-local)
|
((file-directory-p mu4e-load-path-usr-local)
|
||||||
mu4e-load-path-usr-local)
|
mu4e-load-path-usr-local)
|
||||||
|
((file-directory-p mu4e-load-path-usr)
|
||||||
|
mu4e-load-path-usr-local)
|
||||||
(t (error "mu4e not found!"))))))
|
(t (error "mu4e not found!"))))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue