mu4e: Add homepage to signature
parent
2da3b98a1d
commit
c9ad262776
|
@ -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 ()
|
||||
|
|
Loading…
Reference in New Issue