diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2019-01-31 17:24:52 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2019-01-31 17:24:52 +0100 |
| commit | f6b43579ea1de721fcf217d818e5c732be37bfe8 (patch) | |
| tree | 6ac5a8fd6e4202e70a7e96791dca33fef467e5d1 /emacs/init.org | |
| parent | e4f98a759cf4a0d7084d1a6246885e23b27ddff7 (diff) | |
| download | dotfiles-f6b43579ea1de721fcf217d818e5c732be37bfe8.tar.gz dotfiles-f6b43579ea1de721fcf217d818e5c732be37bfe8.zip | |
emacs: skip mu4e if it has not been installed
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.org')
| -rw-r--r-- | emacs/init.org | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emacs/init.org b/emacs/init.org index 5ff8fcc..36d4191 100644 --- a/emacs/init.org +++ b/emacs/init.org @@ -1020,6 +1020,10 @@ provided in my [[https://github.com/mssola/dotfiles][dotfiles]] project to get m I'm using an RPM that I've built on [[https://build.opensuse.org/package/show/home:mssola/mu][OBS]] which installs mu4e globally. #+BEGIN_SRC elisp +(unless (file-directory-p "/usr/share/emacs/site-lisp/mu4e") + (message "Skipping mu4e because it's not installed.")) + +(when (file-directory-p "/usr/share/emacs/site-lisp/mu4e") (add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e") (require 'mu4e) @@ -1319,7 +1323,7 @@ And finally define a proper shortcut. #+BEGIN_SRC elisp ; The trailing parenthesis closes the "(when (featurep 'mu4e)" statement from ; the very beginning. - (global-set-key (kbd "C-c m") 'mu4e)) + (global-set-key (kbd "C-c m") 'mu4e))) #+END_SRC * org |
