From 9d90a8c4ecb357eed071e8d02d8b2a0cec548ecc Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Thu, 13 Oct 2022 20:22:43 +0200 Subject: [PATCH] [mu4e] Load from nix install, if available --- config.org | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index 57dfdf4..82c1f81 100644 --- a/config.org +++ b/config.org @@ -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 () (let* ((mu4e-site-lisp-path "/share/emacs/site-lisp/mu4e") (mu4e-load-path-usr (concat "/usr" 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-usr) + (mu4e-load-path-usr-local (concat "/usr/local" mu4e-site-lisp-path)) + (mu4e-load-path-nix (concat (getenv "HOME") "/.nix-profile" mu4e-site-lisp-path))) + (cond ((file-directory-p mu4e-load-path-nix) + mu4e-load-path-nix) ((file-directory-p 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!")))))) #+end_src