summaryrefslogtreecommitdiff
path: root/emacs-init.org
diff options
context:
space:
mode:
authorfpi2020-06-12 15:02:22 +0200
committerfpi2020-06-12 15:07:55 +0200
commit825b390765a5203892003dda8f0b1a9462e2fda0 (patch)
treea49274aa5b0911158d886c3cb57eb8ac38ba1bf8 /emacs-init.org
parentAdd function to join adjacent clock lines if possible (diff)
Add reply to mail and checkout capture templates
Diffstat (limited to 'emacs-init.org')
-rw-r--r--emacs-init.org25
1 files changed, 24 insertions, 1 deletions
diff --git a/emacs-init.org b/emacs-init.org
index 37abc99..70e9d89 100644
--- a/emacs-init.org
+++ b/emacs-init.org
@@ -2199,6 +2199,26 @@ Templates
entry
(id "efc97963-b714-4020-94b6-c23ad2a286ee")
(function fpi/add-org-from-doi))
+ ("r" "Reply"
+ entry
+ (file "~/sync/refile.org")
+ "* REPLY: %:from: %:subject
+:PROPERTIES:
+:CREATED: %U
+:SOURCE: %a
+:END:
+%?
+"
+ )
+ ("c" "Checkout")
+ ("cr" ".. & read"
+ entry
+ (file "~/sync/refile.org")
+ "* TODO %a :READLIST:
+:PROPERTIES:
+:CREATED: %U
+:END:
+%?")
;; ("a" "Appointment" entry (file "~/sync/a.org")
;; "* %i%?%(and (org-id-get-create) nil)\n:PROPERTIES:\n:CREATED: %U%(when %a \"\n:SOURCE: %a\")\n:END:\n%^t")
;; ("t" "Soonish task" entry (file "~/sync/refile.org")
@@ -2242,7 +2262,10 @@ Templates
;; :empty-lines 1
;; :immediate-finish t)
)
- )))
+ )
+ (org-capture-templates-contexts
+ '(("r" ((in-mode . "gnus-summary-mode")
+ (in-mode . "gnus-article-mode")))))))
#+END_SRC
Setup for floating capture window. For reference see [[https://www.windley.com/archives/2010/12/capture_mode_and_emacs.shtml][here]].
#+begin_src emacs-lisp