From 5a0973304853eb59e70c4744f0b3d885ace0dd4a Mon Sep 17 00:00:00 2001 From: djcb Date: Mon, 30 Jan 2017 21:05:04 +0200 Subject: [PATCH] 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. --- mu4e/mu4e-actions.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-actions.el b/mu4e/mu4e-actions.el index d17b0ce9..ea700770 100644 --- a/mu4e/mu4e-actions.el +++ b/mu4e/mu4e-actions.el @@ -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)