]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
more org-mode snippets
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 23 Jul 2015 07:20:10 +0000 (09:20 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Thu, 23 Jul 2015 07:20:10 +0000 (09:20 +0200)
thanks to http://howardism.org

snippets/org-mode/babel-shell [new file with mode: 0644]
snippets/org-mode/blog [new file with mode: 0644]
snippets/org-mode/title [new file with mode: 0644]

diff --git a/snippets/org-mode/babel-shell b/snippets/org-mode/babel-shell
new file mode 100644 (file)
index 0000000..239486d
--- /dev/null
@@ -0,0 +1,14 @@
+# -*- mode: snippet -*-
+# name: babel-shell
+# key: babel-sh
+# --
+* Technical Section
+
+This file originally came from an [[http://orgmode.org][org-mode]] file.
+Create the script by tangling it with: =C-c C-v t=
+
+
+#+PROPERTY: tangle ${1:~/bin/`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`}
+#+PROPERTY: comments org
+#+PROPERTY: shebang #!/usr/bin/env ${2:sh}
+#+DESCRIPTION: $0
diff --git a/snippets/org-mode/blog b/snippets/org-mode/blog
new file mode 100644 (file)
index 0000000..f8da2b5
--- /dev/null
@@ -0,0 +1,16 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: blog
+# key: blog
+# --
+#+TITLE:       ${1:`(replace-regexp-in-string "-" " " (capitalize (file-name-nondirectory (file-name-sans-extension (buffer-file-name)))))`}
+#+AUTHOR:      `(user-full-name)`
+#+EMAIL:       `user-mail-address`
+#+DATE:        `(format-time-string "%Y-%b-%d %a")`
+#+URI:         `(replace-regexp-in-string (concat (getenv "HOME") "/[^/]*/") "/" (file-name-sans-extension (buffer-file-name)))`/
+#+TAGS:        $2
+#+KEYWORDS:    $3
+#+LANGUAGE:    en
+#+OPTIONS:     H:3 num:nil toc:nil \n:nil ::t |:t ^:nil -:nil f:t *:t <:t
+#+DESCRIPTION: $4
+
+$0
diff --git a/snippets/org-mode/title b/snippets/org-mode/title
new file mode 100644 (file)
index 0000000..7ac589a
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: title
+# key: title
+# --
+#+TITLE:  ${1:`(replace-regexp-in-string "-" " " (capitalize (file-name-nondirectory (file-name-sans-extension (buffer-file-name)))))`}
+#+AUTHOR: `(user-full-name)`
+#+EMAIL:  `user-mail-address`
+#+DATE:   `(format-time-string "%Y %b %d")`
+#+TAGS:   $2
+
+$0