mu4e: Add homepage to signature

master
Pierre Neidhardt 2018-08-12 16:15:46 +02:00
parent 2da3b98a1d
commit c9ad262776
1 changed files with 8 additions and 6 deletions

View File

@ -99,12 +99,14 @@ 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 (and ambrevar/mu4e-compose-fortune-p
(executable-find "fortune"))
(format "%s\n\n%s"
user-full-name
(ambrevar/call-process-to-string "fortune" "-s"))
user-full-name)))
(concat
user-full-name
"\n"
"https://ambrevar.xyz/"
(when (and ambrevar/mu4e-compose-fortune-p
(executable-find "fortune"))
(concat "\n\n"
(ambrevar/call-process-to-string "fortune" "-s"))))))
(add-hook 'mu4e-compose-pre-hook 'ambrevar/mu4e-add-fortune-signature)
(defun ambrevar/mu4e-select-dictionary ()