From ebe9cdd4f4d858f7884d8c616fb421d189b1017c Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Mon, 29 Apr 2013 16:09:02 +0200 Subject: [PATCH] Add notmuch-emacs configuration. --- emacs.el | 2 ++ notmuch-config.el | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 notmuch-config.el diff --git a/emacs.el b/emacs.el index 28c600e..def8971 100644 --- a/emacs.el +++ b/emacs.el @@ -39,3 +39,5 @@ (cons '("\\.ebuild\\'" . ebuild-mode) (cons '("\\.eclass\\'" . ebuild-mode) auto-mode-alist))) + +(eval-after-load "notmuch" '(load "~/etc/notmuch-config.el")) diff --git a/notmuch-config.el b/notmuch-config.el new file mode 100644 index 0000000..e72b8cf --- /dev/null +++ b/notmuch-config.el @@ -0,0 +1,21 @@ +(custom-set-variables + '(mm-text-html-renderer 'w3m) + '(send-mail-function 'sendmail-send-it) + '(sendmail-program "sendmail") + '(message-kill-buffer-on-exit t)) + +; swap r and R +(define-key notmuch-show-mode-map "r" 'notmuch-show-reply) +(define-key notmuch-show-mode-map "R" 'notmuch-show-reply-sender) +(define-key notmuch-search-mode-map "r" 'notmuch-search-reply-to-thread) +(define-key notmuch-search-mode-map "R" 'notmuch-search-reply-to-thread-sender) + +(custom-set-variables '(notmuch-fcc-dirs nil)) +(add-hook 'message-header-setup-hook 'notmuch-bcc-header-setup) +(defun notmuch-bcc-header-setup () + (message-add-header "Bcc: gebner@gebner.org")) + +(custom-set-variables + '(mail-specify-envelope-from t) + '(message-sendmail-envelope-from 'header) + '(mail-envelope-from 'header))