mu4e: msg2pdf: don't require builddir for default

Try to find msg2pdf in addition to builddir, since it seems some people
/ distros are actually installing it.
This commit is contained in:
djcb 2017-01-30 21:05:04 +02:00
parent 430f17af65
commit 5a09733048
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ Works for headers view and message-view."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defvar mu4e-msg2pdf (concat mu4e-builddir "/toys/msg2pdf/msg2pdf")
(defvar mu4e-msg2pdf
(let ((exec-path (cons (concat mu4e-builddir "/toys/msg2pdf/") exec-path)))
(locate-file "msg2pdf" exec-path exec-suffixes))
"Path to the msg2pdf toy.")
(defun mu4e-action-view-as-pdf (msg)