aboutsummaryrefslogtreecommitdiffstats
path: root/oni-org/capture-templates/clocked
diff options
context:
space:
mode:
Diffstat (limited to 'oni-org/capture-templates/clocked')
-rw-r--r--oni-org/capture-templates/clocked/code-note.org8
-rw-r--r--oni-org/capture-templates/clocked/code.org3
-rw-r--r--oni-org/capture-templates/clocked/item.org1
-rw-r--r--oni-org/capture-templates/clocked/kill-ring.org1
-rw-r--r--oni-org/capture-templates/clocked/note.org3
5 files changed, 16 insertions, 0 deletions
diff --git a/oni-org/capture-templates/clocked/code-note.org b/oni-org/capture-templates/clocked/code-note.org
new file mode 100644
index 0000000..ee9489f
--- /dev/null
+++ b/oni-org/capture-templates/clocked/code-note.org
@@ -0,0 +1,8 @@
+%U
+- File: [[file:%F::%(number-to-string (with-current-buffer (get-buffer (find-file-noselect \"%F\")) (line-number-at-pos (region-beginning))))][%f]]
+
+%?
+
+#+BEGIN_SRC %(string-remove-suffix \"-mode\" (symbol-name (with-current-buffer (get-buffer (find-file-noselect \"%F\")) major-mode)))
+%i
+#+END_SRC"
diff --git a/oni-org/capture-templates/clocked/code.org b/oni-org/capture-templates/clocked/code.org
new file mode 100644
index 0000000..e8df773
--- /dev/null
+++ b/oni-org/capture-templates/clocked/code.org
@@ -0,0 +1,3 @@
+#+BEGIN_EXAMPLE
+%i
+#+END_EXAMPLE
diff --git a/oni-org/capture-templates/clocked/item.org b/oni-org/capture-templates/clocked/item.org
new file mode 100644
index 0000000..8b3f27b
--- /dev/null
+++ b/oni-org/capture-templates/clocked/item.org
@@ -0,0 +1 @@
+%i%?
diff --git a/oni-org/capture-templates/clocked/kill-ring.org b/oni-org/capture-templates/clocked/kill-ring.org
new file mode 100644
index 0000000..4a883c8
--- /dev/null
+++ b/oni-org/capture-templates/clocked/kill-ring.org
@@ -0,0 +1 @@
+%c
diff --git a/oni-org/capture-templates/clocked/note.org b/oni-org/capture-templates/clocked/note.org
new file mode 100644
index 0000000..f3e8ce3
--- /dev/null
+++ b/oni-org/capture-templates/clocked/note.org
@@ -0,0 +1,3 @@
+%U
+
+%?