diff options
author | Vasudev Kamath <vasudev@copyninja.info> | 2017-10-03 15:45:40 +0530 |
---|---|---|
committer | Vasudev Kamath <vasudev@copyninja.info> | 2017-10-03 15:52:54 +0530 |
commit | 2c9d6911bbffb5793b667517d89a4c2c738e2e12 (patch) | |
tree | 6964265c735194c1e3b2eb9dd4e4e3ccfc4ea20d /keybindings.el | |
parent | 745a1076dff6c46c27a412de82fb21e1fead38d5 (diff) |
Inital commit of notmuch configuration for spacemacs
Diffstat (limited to 'keybindings.el')
-rw-r--r-- | keybindings.el | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/keybindings.el b/keybindings.el new file mode 100644 index 0000000..2efc7bc --- /dev/null +++ b/keybindings.el @@ -0,0 +1,28 @@ +(require 'notmuch) +(define-key notmuch-search-mode-map "u" 'notmuch-mark-as-read) +(define-key notmuch-search-mode-map "U" 'notmuch-mark-all-read) + +(define-key notmuch-search-mode-map (kbd "S-<f9>") 'notmuch-search-remove-todo) +(define-key notmuch-search-mode-map (kbd "<f9>") 'notmuch-search-add-todo) + +(define-key notmuch-search-mode-map "d" 'notmuch-mark-deleted) +(define-key notmuch-search-mode-map "s" 'notmuch-mark-as-spam) + +(define-key notmuch-show-mode-map "c" 'bbdb/notmuch-snarf-from) +(define-key notmuch-show-mode-map "C" 'bbdb/notmuch-snarf-to) + +;; Bounce key for bouncing message +(define-key notmuch-show-mode-map "b" + (lambda (&optional address) + "Bounce the current message." + (interactive "sBounce To: ") + (notmuch-show-view-raw-message) + (message-resend address))) + +(define-key notmuch-show-mode-map "d" + (lambda () + "toggle deleted tag for message" + (interactive) + (if (member "deleted" (notmuch-show-get-tags)) + (notmuch-show-tag (list "-deleted")) + (notmuch-show-tag (list "+deleted"))))) |