diff options
Diffstat (limited to '.emacs.local.d')
-rw-r--r-- | .emacs.local.d/general.el | 4 | ||||
-rw-r--r-- | .emacs.local.d/mail.el | 13 | ||||
-rw-r--r-- | .emacs.local.d/modes/org.el | 1 |
3 files changed, 13 insertions, 5 deletions
diff --git a/.emacs.local.d/general.el b/.emacs.local.d/general.el index 76efd12..250c6bc 100644 --- a/.emacs.local.d/general.el +++ b/.emacs.local.d/general.el @@ -163,10 +163,6 @@ ;; Use default brwoser ;;(setq browse-url-browser-function 'browse-url-generic browse-url-generic-program "chromium") -;; Mutt support. -(setq auto-mode-alist (append '((".*tmp/mutt.*" . message-mode)) auto-mode-alist)) -(setq auto-mode-alist (append '((".*tmp/neomutt.*" . message-mode)) auto-mode-alist)) - ;; Save what you enter into minibuffer prompts (setq history-length 25) (savehist-mode 1) diff --git a/.emacs.local.d/mail.el b/.emacs.local.d/mail.el new file mode 100644 index 0000000..da011cd --- /dev/null +++ b/.emacs.local.d/mail.el @@ -0,0 +1,13 @@ +;; Mutt support. +(setq auto-mode-alist (append '((".*tmp/mutt.*" . message-mode)) auto-mode-alist)) +(setq auto-mode-alist (append '((".*tmp/neomutt.*" . message-mode)) auto-mode-alist)) + +;; Hook up `mutt:...` style URLs +(require 'ol-notmuch) +(org-add-link-type "message" 'org-notmuch-open) + +(setq send-mail-function 'sendmail-send-it + sendmail-program "/usr/bin/msmtp" + mail-specify-envelope-from t + message-sendmail-envelope-from 'header + mail-envelope-from 'header) diff --git a/.emacs.local.d/modes/org.el b/.emacs.local.d/modes/org.el index d504491..d1939f9 100644 --- a/.emacs.local.d/modes/org.el +++ b/.emacs.local.d/modes/org.el @@ -27,7 +27,6 @@ org-fontify-done-headline t org-fontify-quote-and-verse-blocks t) - ;; ORG BINDINGS ;; (global-set-key (kbd "C-c l") #'org-store-link) (global-set-key (kbd "C-c a") #'org-agenda) |