summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-03-10 17:07:25 -0500
committerKyle Meyer <kyle@kyleam.com>2017-03-10 17:07:25 -0500
commit9282b38a885714c3b4d4d79a8556b002d8b36987 (patch)
tree1e927b3ef98cbd72e444253eb221c8516d7c3657
parentb9526cbe3708190236e78f972ed690b43baf0e60 (diff)
downloademacs.d-9282b38a885714c3b4d4d79a8556b002d8b36987.tar.gz
notmuch: Reverse meaning of argument for forwarding commands
-rw-r--r--init.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/init.el b/init.el
index 537e64d..ed6bcd6 100644
--- a/init.el
+++ b/init.el
@@ -2049,6 +2049,18 @@
(setq notmuch-wash-citation-lines-prefix 10)
(setq notmuch-wash-citation-lines-suffix 10)
+ (advice-add
+ 'notmuch-show-forward-message :around
+ (lambda (fn &optional prompt-for-sender)
+ (funcall fn (not prompt-for-sender)))
+ '((name . "notmuch-show-forward-message--reverse-arg")))
+
+ (advice-add
+ 'notmuch-show-forward-open-messages :around
+ (lambda (fn &optional prompt-for-sender)
+ (funcall fn (not prompt-for-sender)))
+ '((name . "notmuch-show-forward-open-messages--reverse-arg")))
+
(define-key notmuch-common-keymap "d" #'notmuch-jump-search)
(define-key notmuch-message-mode-map (kbd "C-c C-s") nil)
(define-key notmuch-show-mode-map "v" #'org-capture)