diff options
-rw-r--r-- | .config/mutt/muttrc | 1 | ||||
-rw-r--r-- | .emacs.d/init.el | 13 |
2 files changed, 0 insertions, 14 deletions
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc index 4a2d8649..2825f7ec 100644 --- a/.config/mutt/muttrc +++ b/.config/mutt/muttrc @@ -2,7 +2,6 @@ set abort_nosubject=no set abort_unmodified=no -set edit_headers set editor="emacsclient -t" set fast_reply set folder=~/.fmail/ diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 83417b4e..92d444ba 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -2722,10 +2722,6 @@ mutt's review view, after exiting EDITOR." (terpri (current-buffer) t) (call-interactively #'mail-add-attachment))) -(defun spw/mutt-mail-header-separator () - (when (string-match "^mutt-" (buffer-name)) - (setq-local mail-header-separator ""))) - (defun spw/message-newline-and-reformat (arg) "Like `message-newline-and-reformat', but remove unneeded lines." (interactive "P") @@ -2798,21 +2794,12 @@ mutt's review view, after exiting EDITOR." (define-key message-mode-map [remap mml-attach-file] #'spw/message-add-attachment) - ;; mutt uses a blank line to separate the headers from the message body; - ;; tell Emacs about that, for the case where mutt invokes emacsclient as - ;; EDITOR - (add-to-list 'auto-mode-alist '("/mutt-.+$" . message-mode)) - (add-hook 'message-mode-hook #'spw/mutt-mail-header-separator) - ;; This relies on user.primary_email, user.other_email notmuch config keys. (spw/when-library-available notmuch-address (require 'notmuch-address) (notmuch-address-setup)) (add-hook 'message-mode-hook #'footnote-mode) - ;; this is for the benefit of mutt - (add-hook 'message-mode-hook #'message-goto-body) - (define-key message-mode-map [remap message-newline-and-reformat] #'spw/message-newline-and-reformat) |