From a2af1fd485e78ae69f0cedcebb4e79da895a5f70 Mon Sep 17 00:00:00 2001 From: Random936 Date: Wed, 27 Sep 2023 15:21:41 -0700 Subject: [PATCH] Updated mu4e load-path to be dynamic --- .emacs.d/email.org | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.emacs.d/email.org b/.emacs.d/email.org index f89fc65..7ee252a 100644 --- a/.emacs.d/email.org +++ b/.emacs.d/email.org @@ -49,9 +49,18 @@ mu index From here, I can continue onto configuring the ~mu4e~ emacs package. #+begin_src emacs-lisp + +;; Check which load-path exists for multi-platform support. +(setq jm/mu4e-load-path + (let ((linux-path "/usr/share/emacs/site-lisp/mu4e") + (macos-path "/opt/homebrew/share/emacs/site-lisp/mu/mu4e")) + (cond ((file-exists-p linux-path) linux-path) + ((file-exists-p macos-path) macos-path) + (t (error "No mu4e load-path present. Is mu4e installed?"))))) + (use-package mu4e :ensure nil - :load-path "/opt/homebrew/share/emacs/site-lisp/mu/mu4e/" + :load-path jm/mu4e-load-path :bind ("C-x m" . mu4e) :config ;; Avoids syncing issues.