aboutsummaryrefslogtreecommitdiff
path: root/gui/conf
diff options
context:
space:
mode:
authorAdrian Kummerlaender2022-10-11 18:56:52 +0200
committerAdrian Kummerlaender2022-10-11 18:56:52 +0200
commit9a88092c6a0bab362829a1ebcdb8817fd973a6ac (patch)
treec668aeb72a4ba1fa28800b2397555a8081eb294e /gui/conf
parentd278bbdd498ddcf3f0e3003be925cebbffcd7bd0 (diff)
downloadnixos_home-9a88092c6a0bab362829a1ebcdb8817fd973a6ac.tar
nixos_home-9a88092c6a0bab362829a1ebcdb8817fd973a6ac.tar.gz
nixos_home-9a88092c6a0bab362829a1ebcdb8817fd973a6ac.tar.bz2
nixos_home-9a88092c6a0bab362829a1ebcdb8817fd973a6ac.tar.lz
nixos_home-9a88092c6a0bab362829a1ebcdb8817fd973a6ac.tar.xz
nixos_home-9a88092c6a0bab362829a1ebcdb8817fd973a6ac.tar.zst
nixos_home-9a88092c6a0bab362829a1ebcdb8817fd973a6ac.zip
Add keybind for quick capturing of mu4e respond tasks
Diffstat (limited to 'gui/conf')
-rw-r--r--gui/conf/email.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/gui/conf/email.el b/gui/conf/email.el
index 4236bff..442540e 100644
--- a/gui/conf/email.el
+++ b/gui/conf/email.el
@@ -84,7 +84,14 @@
"* TODO /%:subject/\n See %a\n%?"
:prepend t))
(add-to-list 'org-capture-templates
- '("r" "Respond to eMail" entry (file org-default-notes-file)
+ '("rm" "Respond to eMail" entry (file org-default-notes-file)
"* TODO Respond to /%:subject/\n See %a\n%?"
:prepend t
:immediate-finish t))
+
+(defun org-mail-capture-response ()
+ (interactive)
+ (call-interactively 'org-store-link)
+ (org-capture nil "rm"))
+
+(define-key mu4e-headers-mode-map (kbd "C-c r") 'org-mail-capture-response)