aboutsummaryrefslogtreecommitdiff
path: root/emacs/settings/init-mu4e.el
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2016-12-21 10:52:40 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2016-12-21 10:52:40 +0100
commit30ee8e107c7c8dca0a163bf1432e926d2329ea9c (patch)
tree0dcdbaa2c84169d031e11752bb16143941084811 /emacs/settings/init-mu4e.el
parent917d1105647929fd6e0c7034b859266c26008ef8 (diff)
downloaddotfiles-30ee8e107c7c8dca0a163bf1432e926d2329ea9c.tar.gz
dotfiles-30ee8e107c7c8dca0a163bf1432e926d2329ea9c.zip
emacs: fetch the msg2pdf from the exec path
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/settings/init-mu4e.el')
-rw-r--r--emacs/settings/init-mu4e.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/settings/init-mu4e.el b/emacs/settings/init-mu4e.el
index cc29e60..2a3ad13 100644
--- a/emacs/settings/init-mu4e.el
+++ b/emacs/settings/init-mu4e.el
@@ -186,6 +186,11 @@
(add-to-list 'mu4e-view-actions
'("webkit" . mu4e-action-view-with-xwidget)))
+ ; Look for mu4e-msg2pdf in the exec path.
+ (let ((exec (locate-file "msg2pdf" exec-path exec-suffixes)))
+ (if exec
+ (setq mu4e-msg2pdf exec)))
+
;; Addings hooks for composing and viewing messages.
(defun mssola-compose-mode ()