summaryrefslogtreecommitdiff
path: root/emacs/custom/my-org.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-07-07 17:21:38 -0700
committerFranck Cuny <franck@fcuny.net>2022-07-07 17:40:09 -0700
commit8d6fbad3e7f471a0dc6e47c7ad62a0d3b6076816 (patch)
tree4017948947dd5bcd250b88afa91d23cfccc12cd3 /emacs/custom/my-org.el
parentfeat(notmuch): tweak a bit more the configuration (diff)
downloademacs.d-8d6fbad3e7f471a0dc6e47c7ad62a0d3b6076816.tar.gz
feat(org-mode): add capture template for emails
Add a new template for org-mode capture related to emails. It's useful to create tasks based on an email, and the module `ol-notmuch' helps with that: it extract the subject (among other stuff). Change-Id: Id211c1f9952d1093dac8f7466ffd818537961ee9 Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/614 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
Diffstat (limited to 'emacs/custom/my-org.el')
-rw-r--r--emacs/custom/my-org.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/emacs/custom/my-org.el b/emacs/custom/my-org.el
index 4017483..f338751 100644
--- a/emacs/custom/my-org.el
+++ b/emacs/custom/my-org.el
@@ -8,7 +8,7 @@
(require 'org-archive)
(require 'ox)
(require 'ox-md)
-(require 'notmuch)
+(require 'ol-notmuch)
(defvar my/org-directory
(if (memq window-system '(mac ns))
@@ -111,12 +111,16 @@
"* %?\n:PROPERTIES:\n:CREATED: %T\n:END:\n")
("f" "feed" entry (file "inbox.org")
- ,(concat "* TODO %:elfeed-entry-title\n"
+ ,(concat "* TO-READ %:elfeed-entry-title :feed:\n"
":PROPERTIES:\n:CREATED: %T\n:END:\n"
"%a\n"))
- ("m" "mail" entry (file "inbox.org")
- (function my/mail-todo-format-string))
+ ("m" "email note" entry (file "inbox.org")
+ ,(concat "* TODO [#A] %:subject :mail:\n"
+ ":PROPERTIES:\n"
+ ":CREATED: %T\n"
+ ":END:\n"
+ "%a\n%i%?"))
("j" "journal" entry
(file+olp+datetree "journal.org")