1
0
Fork 0

Reorganize and add context to org-capture-templates

This commit is contained in:
Tom Willemse 2020-03-10 17:05:57 -07:00
parent f903d0849e
commit 9d0d6776c1

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0308.170335 ;; Version: 2020.0310.164710
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna) ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -249,14 +249,29 @@ _l_: Store link ^^ _j_: Journal entry
(file+olp+datetree (file+olp+datetree
,(oni-org-expand-to-home "documents/gtd/journal.org")) ,(oni-org-expand-to-home "documents/gtd/journal.org"))
"* %<%H:%M:%S>\n %?") "* %<%H:%M:%S>\n %?")
("c" "Item to current clocked task" item ("c" "Add to currently clocked item")
("ca" "Note" plain
(clock)
" %U\n %?" :empty-lines 1)
("ci" "Item to current clocked task" item
(clock) (clock)
" %i%?" :empty-lines 1) " %i%?" :empty-lines 1)
("C" "Contents to current clocked tasks" plain ("cc" "Marked code example with notes" plain
(clock)
" %U
- File: [[file:%F::%(number-to-string (with-current-buffer (get-buffer \"%f\") (line-number-at-pos (region-beginning))))][%f]]
%?
#+BEGIN_SRC %(string-remove-suffix \"-mode\" (symbol-name (with-current-buffer (get-buffer \"%f\") major-mode)))
%i
#+END_SRC"
:empty-lines 1)
("cC" "Marked code example" plain
(clock) (clock)
" #+BEGIN_EXAMPLE\n %i\n #+END_EXAMPLE" " #+BEGIN_EXAMPLE\n %i\n #+END_EXAMPLE"
:immediate-finish t :empty-lines 1) :immediate-finish t :empty-lines 1)
("K" "Kill-ring to current clocked task" plain ("ck" "Kill-ring contents" plain
(clock) (clock)
" %c" :immediate-finish t :empty-lines 1))) " %c" :immediate-finish t :empty-lines 1)))