diff options
author | Tom Willemse | 2020-03-10 17:05:57 -0700 |
---|---|---|
committer | Tom Willemse | 2020-03-10 17:05:57 -0700 |
commit | 9d0d6776c170894a36a70cd0ebd678438f3243b1 (patch) | |
tree | 7cfe6ddf98bfb2024e01813d1a8a027d52e21090 | |
parent | f903d0849eaa0f1db26025702893b9ffbfefd6ff (diff) | |
download | emacs-config-9d0d6776c170894a36a70cd0ebd678438f3243b1.tar.gz emacs-config-9d0d6776c170894a36a70cd0ebd678438f3243b1.zip |
Reorganize and add context to org-capture-templates
-rw-r--r-- | oni-org/oni-org.el | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index e2dc1ef..d691309 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; 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) ;; 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 ,(oni-org-expand-to-home "documents/gtd/journal.org")) "* %<%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) " %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) " #+BEGIN_EXAMPLE\n %i\n #+END_EXAMPLE" :immediate-finish t :empty-lines 1) - ("K" "Kill-ring to current clocked task" plain + ("ck" "Kill-ring contents" plain (clock) " %c" :immediate-finish t :empty-lines 1))) |