emacs: don’t hard code msmtp’s location, use executable-find instead
authorAmin Bandali <bandali@gnu.org>
Fri, 28 Jun 2019 22:16:20 +0000 (18:16 -0400)
committerAmin Bandali <bandali@gnu.org>
Fri, 28 Jun 2019 22:16:20 +0000 (18:16 -0400)
.emacs.d/init.el

index 29a9ec9..490df15 100644 (file)
@@ -1939,7 +1939,7 @@ https://csclub.uwaterloo.ca/~abandali")
 
 (use-feature sendmail
   :config
-  (setq sendmail-program "/usr/bin/msmtp"
+  (setq sendmail-program (executable-find "msmtp")
         ;; message-sendmail-extra-arguments '("-v" "-d")
         mail-specify-envelope-from t
         mail-envelope-from 'header))