summaryrefslogtreecommitdiff
path: root/resources/snippets/org-mode
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2021-09-13 22:49:27 -0700
committerMarius Peter <marius.peter@tutanota.com>2021-09-13 22:49:27 -0700
commitc3875265ccdd1d72f06a16ab1ca725b7cb2ec35b (patch)
treee6b79624e36b4b632398f318bc4ec04034ec88ee /resources/snippets/org-mode
parentcc5cd4196c306b176f8af0124dc3d73b525024b1 (diff)
Consolidated resources and meta files.
Diffstat (limited to 'resources/snippets/org-mode')
-rw-r--r--resources/snippets/org-mode/default16
-rw-r--r--resources/snippets/org-mode/img7
-rw-r--r--resources/snippets/org-mode/quote7
-rw-r--r--resources/snippets/org-mode/src7
-rw-r--r--resources/snippets/org-mode/table11
5 files changed, 48 insertions, 0 deletions
diff --git a/resources/snippets/org-mode/default b/resources/snippets/org-mode/default
new file mode 100644
index 0000000..f667c69
--- /dev/null
+++ b/resources/snippets/org-mode/default
@@ -0,0 +1,16 @@
+# -*- mode: snippet -*-
+# name: default
+# key: $default
+# --
+# -*- mode: org; -*-
+
+#+TITLE: ${1:Default Title}
+#+AUTHOR: ${2:`(if (eq user-full-name "") "Default Author" user-full-name)`}
+#+DATE: ${3:`(with-temp-buffer (org-insert-time-stamp (current-time)))`}
+
+#+SETUPFILE: ~/.emacs.d/templates/documents/${4:`(if (string= system-type "gnu/linux") "gnu-" "ms-:")`}default.setup
+#+INCLUDE: ~/.emacs.d/templates/documents/title-default.org
+
+$0
+
+
diff --git a/resources/snippets/org-mode/img b/resources/snippets/org-mode/img
new file mode 100644
index 0000000..5632367
--- /dev/null
+++ b/resources/snippets/org-mode/img
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: img
+# key: $img
+# --
+#+NAME: ${1:image-title}
+#+CAPTION[${2:Short caption}]: $2. ${3:Optional additional details}
+[[`(concat user-emacs-directory "img/")`$0--]] \ No newline at end of file
diff --git a/resources/snippets/org-mode/quote b/resources/snippets/org-mode/quote
new file mode 100644
index 0000000..e716010
--- /dev/null
+++ b/resources/snippets/org-mode/quote
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: quote
+# key: $quote
+# --
+#+BEGIN_QUOTE
+$0
+#+END_QUOTE
diff --git a/resources/snippets/org-mode/src b/resources/snippets/org-mode/src
new file mode 100644
index 0000000..cdada53
--- /dev/null
+++ b/resources/snippets/org-mode/src
@@ -0,0 +1,7 @@
+# -*- mode: snippet -*-
+# name: src
+# key: $src
+# --
+#+BEGIN_SRC ${1:emacs-lisp} ${2::tangle yes}
+$0
+#+END_SRC
diff --git a/resources/snippets/org-mode/table b/resources/snippets/org-mode/table
new file mode 100644
index 0000000..9e40d92
--- /dev/null
+++ b/resources/snippets/org-mode/table
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: table
+# key: $tab
+# --
+#+NAME: ${1:table-title}
+#+CAPTION[${2:Short caption}]: $2. ${3:Optional additional details}
+#+ATTR_LATEX: :booktabs t
+| *${4:Title of Entries}* | *${5:Column 2}* | *${6:Column 2}* |
+|-------------------------+-----------------+-----------------|
+| *${7:Entry 1}* | $0 | |
+| | | |
Copyright 2019--2024 Marius PETER