summaryrefslogtreecommitdiffstats
path: root/emacs/snippets/org-mode
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-02-17 23:09:24 +0100
committerGravatar Tom Willemsen2013-02-17 23:09:33 +0100
commita281f040cd35dffe171d5b7d6b00fe03163be6a0 (patch)
tree744e2d8aeaed2aca087a1c1cbc3e9791644e973d /emacs/snippets/org-mode
parent50ab6deeabf2769ed3c4ff67385fae768ff41ee2 (diff)
downloaddotfiles-a281f040cd35dffe171d5b7d6b00fe03163be6a0.tar.gz
dotfiles-a281f040cd35dffe171d5b7d6b00fe03163be6a0.zip
Move .emacs.d to emacs
Since it's no longer placed directly in the home directory it doesn't need to be named exacly the same.
Diffstat (limited to 'emacs/snippets/org-mode')
-rw-r--r--emacs/snippets/org-mode/Makefile4
-rw-r--r--emacs/snippets/org-mode/codeblock7
-rw-r--r--emacs/snippets/org-mode/heading9
-rw-r--r--emacs/snippets/org-mode/project51
-rw-r--r--emacs/snippets/org-mode/snippet14
5 files changed, 85 insertions, 0 deletions
diff --git a/emacs/snippets/org-mode/Makefile b/emacs/snippets/org-mode/Makefile
new file mode 100644
index 0000000..34d4cd9
--- /dev/null
+++ b/emacs/snippets/org-mode/Makefile
@@ -0,0 +1,4 @@
+DESTDIR:=$(DESTDIR)/org-mode
+objects=codeblock heading project snippet
+
+include ../../../dotfiles.mk
diff --git a/emacs/snippets/org-mode/codeblock b/emacs/snippets/org-mode/codeblock
new file mode 100644
index 0000000..a200b08
--- /dev/null
+++ b/emacs/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/emacs/snippets/org-mode/heading b/emacs/snippets/org-mode/heading
new file mode 100644
index 0000000..9d5451e
--- /dev/null
+++ b/emacs/snippets/org-mode/heading
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: Heading
+# key: *
+# --
+${1:*} ${2:TODO} $3
+${1:$(make-string (length text) ?\ )} :PROPERTIES:
+${1:$(make-string (length text) ?\ )} :CATEGORY: $4
+${1:$(make-string (length text) ?\ )} :END:
+${1:$(make-string (length text) ?\ )} $0 \ No newline at end of file
diff --git a/emacs/snippets/org-mode/project b/emacs/snippets/org-mode/project
new file mode 100644
index 0000000..269d655
--- /dev/null
+++ b/emacs/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/emacs/snippets/org-mode/snippet b/emacs/snippets/org-mode/snippet
new file mode 100644
index 0000000..67f15d5
--- /dev/null
+++ b/emacs/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