summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.el b/init.el
index d9721d5..321daac 100644
--- a/init.el
+++ b/init.el
@@ -216,6 +216,12 @@
:config
(add-hook 'org-capture-before-finalize-hook #'save-buffer)
+ (advice-add 'org-capture :around
+ (lambda (fn &rest args)
+ (when (derived-mode-p 'notmuch-show-mode)
+ (notmuch-show-stash-subject))
+ (apply fn args)))
+
(require 'org-agenda)
(require 'org-contacts))