mu4e: Fix error when fortune is not found on compose

master
Pierre Neidhardt 2018-03-27 11:25:39 +05:30
parent 0c30f62b6f
commit 3e9bf1d4bf
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ Default to unread messages if the header buffer does not already exist."
(defun ambrevar/mu4e-add-fortune-signature ()
(require 'functions) ; For `call-process-to-string'.
(setq mu4e-compose-signature
(if ambrevar/mu4e-compose-fortune-p
(if (and ambrevar/mu4e-compose-fortune-p
(executable-find "fortune"))
(format "%s\n\n%s"
user-full-name
(ambrevar/call-process-to-string "fortune" "-s"))