aboutsummaryrefslogtreecommitdiffstats
path: root/oni-yasnippet/snippets/org-mode
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-05-28 02:12:40 -0700
committerGravatar Tom Willemse2026-05-28 02:12:40 -0700
commit09a4099586657170cbdcff071b2d0fac5ed133b7 (patch)
tree8e8df3ca47bf2e89b430eb4f77e329dc78946320 /oni-yasnippet/snippets/org-mode
parenta44d06182fbcb6b424b4ac699c69f7132c68acb6 (diff)
downloademacs-config-09a4099586657170cbdcff071b2d0fac5ed133b7.tar.gz
emacs-config-09a4099586657170cbdcff071b2d0fac5ed133b7.zip
oni-yasnippet: Move all snippets to ‘oni-yasnippet’
There is no real point in having them all separate. Having them all in a single place makes them much easier to manage.
Diffstat (limited to 'oni-yasnippet/snippets/org-mode')
-rw-r--r--oni-yasnippet/snippets/org-mode/codeblock7
-rw-r--r--oni-yasnippet/snippets/org-mode/heading9
-rw-r--r--oni-yasnippet/snippets/org-mode/project51
-rw-r--r--oni-yasnippet/snippets/org-mode/snippet14
-rw-r--r--oni-yasnippet/snippets/org-mode/task10
5 files changed, 91 insertions, 0 deletions
diff --git a/oni-yasnippet/snippets/org-mode/codeblock b/oni-yasnippet/snippets/org-mode/codeblock
new file mode 100644
index 0000000..a200b08
--- /dev/null
+++ b/oni-yasnippet/snippets/org-mode/codeblock
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: codeblock
+# key: code
+# --
+#+begin_src $1
+ $0
+#+end_src \ No newline at end of file
diff --git a/oni-yasnippet/snippets/org-mode/heading b/oni-yasnippet/snippets/org-mode/heading
new file mode 100644
index 0000000..a472f06
--- /dev/null
+++ b/oni-yasnippet/snippets/org-mode/heading
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: Heading
+# key: <t
+# --
+${1:*} ${2:TODO$(upcase yas-text)} $3
+:PROPERTIES:
+:CREATED: [`(format-time-string "%Y-%m-%d %a %H:%M")`]
+:END:
+$0 \ No newline at end of file
diff --git a/oni-yasnippet/snippets/org-mode/project b/oni-yasnippet/snippets/org-mode/project
new file mode 100644
index 0000000..269d655
--- /dev/null
+++ b/oni-yasnippet/snippets/org-mode/project
@@ -0,0 +1,51 @@
+# -*- mode: snippet -*-
+# name: project
+# key: project
+# --
+#+TITLE: ${1:project_name}
+#+LINK: src ${2:http://code.ryuslash.org/cgit.cgi/$3$1/}
+#+LINK: tar_gz $2${4:snapshot/$1-master}.tar.gz
+#+LINK: zip $2$4.zip
+#+STARTUP: showall
+
+#+begin_html
+ <script src="/keyjs.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ keyjs_initialize({ "u": [ "keyjs_goto", "../index.html" ],
+ "h": [ "keyjs_goto", "http://ryuslash.org" ] });
+ </script>
+#+end_html
+
+#+INCLUDE: "dlmenu.inc"
+
+* About
+
+ ${5:A short description about $1}
+
+ | $0Status | $6 |
+ | Language | $7 |
+ | License | ${8:GPLv3} |
+
+* Why?
+
+ ${9:Why did you even think of writing $1?}
+
+* Features
+
+ ${10:$1 does...}
+
+* Dependencies
+
+ ${11:$1 needs to have...}
+
+* Download
+
+ ${12:To download $1...}
+
+* Install
+
+ ${13:To install $1...}
+
+* Usage
+
+ ${14:Using $1...} \ No newline at end of file
diff --git a/oni-yasnippet/snippets/org-mode/snippet b/oni-yasnippet/snippets/org-mode/snippet
new file mode 100644
index 0000000..67f15d5
--- /dev/null
+++ b/oni-yasnippet/snippets/org-mode/snippet
@@ -0,0 +1,14 @@
+# -*- mode: snippet -*-
+# name: snippet
+# key: snippet
+# --
+#+TITLE: ${1:snippet-name}
+#+OPTIONS: toc:nil
+
+* $1
+
+ ${2:A short description abount $1}
+
+ #+BEGIN_SRC $3 :tangle yes
+$0
+ #+END_SRC \ No newline at end of file
diff --git a/oni-yasnippet/snippets/org-mode/task b/oni-yasnippet/snippets/org-mode/task
new file mode 100644
index 0000000..af229d1
--- /dev/null
+++ b/oni-yasnippet/snippets/org-mode/task
@@ -0,0 +1,10 @@
+# -*- mode: snippet -*-
+# name: task
+# key: todo
+# --
+* TODO ${1:What is the outcome?}
+:PROPERTIES:
+:CREATED: [`(format-time-string "%Y-%m-%d %a %H:%M")`]
+:END:
+
+$0