From 9d0d6776c170894a36a70cd0ebd678438f3243b1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 10 Mar 2020 17:05:57 -0700 Subject: Reorganize and add context to org-capture-templates --- oni-org/oni-org.el | 23 +++++++++++++++++++---- 1 file 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 ;; 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))) -- cgit v1.2.3-54-g00ecf