summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-07-08 15:14:14 +0200
committerGravatar Tom Willemse2015-07-08 15:21:25 +0200
commitdd58c6cf66c9445d5439ae02d5f4daee08b55ef1 (patch)
tree70c128a31912a00e1915ad7ebc32c0b7ccf9003f /emacs
parentf54d8a59305b6c628456c8ba8eb2459213c517d5 (diff)
downloaddotfiles-dd58c6cf66c9445d5439ae02d5f4daee08b55ef1.tar.gz
dotfiles-dd58c6cf66c9445d5439ae02d5f4daee08b55ef1.zip
Add some snippets
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/snippets/emacs-lisp-mode/depends-on5
-rw-r--r--emacs/.emacs.d/snippets/emacs-lisp-mode/face (renamed from emacs/.emacs.d/snippets/emacs-lisp/face)2
-rw-r--r--emacs/.emacs.d/snippets/nxml-mode/pencil-property7
-rw-r--r--emacs/.emacs.d/snippets/nxml-mode/pencil-property-value5
-rw-r--r--emacs/.emacs.d/snippets/nxml-mode/pencil-shortcut9
-rw-r--r--emacs/.emacs.d/snippets/ruby-mode/describe7
-rw-r--r--emacs/.emacs.d/snippets/ruby-mode/fill_in5
-rw-r--r--emacs/.emacs.d/snippets/ruby-mode/reduce5
8 files changed, 44 insertions, 1 deletions
diff --git a/emacs/.emacs.d/snippets/emacs-lisp-mode/depends-on b/emacs/.emacs.d/snippets/emacs-lisp-mode/depends-on
new file mode 100644
index 0000000..4f99d92
--- /dev/null
+++ b/emacs/.emacs.d/snippets/emacs-lisp-mode/depends-on
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: depends-on
+# key: do
+# --
+(depends-on "$1")$0 \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/emacs-lisp/face b/emacs/.emacs.d/snippets/emacs-lisp-mode/face
index 0a13b99..9fdbbb2 100644
--- a/emacs/.emacs.d/snippets/emacs-lisp/face
+++ b/emacs/.emacs.d/snippets/emacs-lisp-mode/face
@@ -1,5 +1,5 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: face
-# key: f
+# key: face
# --
`($1 ((t (${2::foreground} $0)))) \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/nxml-mode/pencil-property b/emacs/.emacs.d/snippets/nxml-mode/pencil-property
new file mode 100644
index 0000000..7fafcb8
--- /dev/null
+++ b/emacs/.emacs.d/snippets/nxml-mode/pencil-property
@@ -0,0 +1,7 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: PencilProperty
+# key: p
+# --
+<Property name="$1"
+ displayName="$2"
+ type="$3">$4</Property> \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/nxml-mode/pencil-property-value b/emacs/.emacs.d/snippets/nxml-mode/pencil-property-value
new file mode 100644
index 0000000..5da3d10
--- /dev/null
+++ b/emacs/.emacs.d/snippets/nxml-mode/pencil-property-value
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: PropertyValue
+# key: pv
+# --
+<PropertyValue name="$1">$2</PropertyValue> \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/nxml-mode/pencil-shortcut b/emacs/.emacs.d/snippets/nxml-mode/pencil-shortcut
new file mode 100644
index 0000000..e760d27
--- /dev/null
+++ b/emacs/.emacs.d/snippets/nxml-mode/pencil-shortcut
@@ -0,0 +1,9 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: Shortcut
+# key: s
+# --
+<Shortcut displayName="$1"
+ icon="$2"
+ to="$3">
+ $0
+</Shortcut> \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/ruby-mode/describe b/emacs/.emacs.d/snippets/ruby-mode/describe
new file mode 100644
index 0000000..acd3a6b
--- /dev/null
+++ b/emacs/.emacs.d/snippets/ruby-mode/describe
@@ -0,0 +1,7 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: describe
+# key: desc
+# --
+describe '$1' do
+ $0
+end \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/ruby-mode/fill_in b/emacs/.emacs.d/snippets/ruby-mode/fill_in
new file mode 100644
index 0000000..854b029
--- /dev/null
+++ b/emacs/.emacs.d/snippets/ruby-mode/fill_in
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: fill_in
+# key: fin
+# --
+fill_in '$1', with: $2 \ No newline at end of file
diff --git a/emacs/.emacs.d/snippets/ruby-mode/reduce b/emacs/.emacs.d/snippets/ruby-mode/reduce
new file mode 100644
index 0000000..3d4bfe4
--- /dev/null
+++ b/emacs/.emacs.d/snippets/ruby-mode/reduce
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: reduce
+# key: reduce
+# --
+reduce { |a, e| $0 } \ No newline at end of file