summaryrefslogtreecommitdiffstats
path: root/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-04-24 23:29:38 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-04-24 23:29:38 +0200
commit7a6bb0f05e349068b0a89514f1da33d6d7de30a9 (patch)
treec202b81dfaf524e71e881c15aa509c45445a64b3 /emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode
parent66b95ab46d870f41c12c489eb21c9c82846d6112 (diff)
downloaddotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.tar.gz
dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.tar.xz
dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.zip
emacs.d/lisp/yasnippet: added yasnippet
Diffstat (limited to 'emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode')
-rw-r--r--emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/.yas-parents1
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/add-hook.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/append.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/apply.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/aref.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/assq.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/autoload.yasnippet5
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-file-name.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-substring.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cdr.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cond.yasnippet7
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/consp.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/current-buffer.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/custom-autoload.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defalias.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/define-key.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defsubst.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defvar.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/delete-region.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/equal.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/error.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/expand-file-name.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/find-file.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/format.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/funcall.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/function.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/get.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/goto-char.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/if.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/interactive.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/let.yasnippet6
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-beginning-position.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-end-position.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/list.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/looking-at.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-beginning.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-end.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/message.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/nth.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-max.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-min.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/princ.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/print.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/push.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/put.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-backward.yasnippetbin0 -> 125 bytes
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-forward.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/region-end.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/repeat.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/require.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/save-excursion.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-backward.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-forward.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/set.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/setq.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string-match.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string=.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/stringp.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/substring.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/unless.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/while.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/widget-get.yasnippet4
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.process.yasnippet17
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet17
-rwxr-xr-xemacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-word-or-region.yasnippet27
70 files changed, 328 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/.yas-parents
new file mode 100644
index 0000000..eed5b44
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/.yas-parents
@@ -0,0 +1 @@
+text-mode
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/add-hook.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/add-hook.yasnippet
new file mode 100755
index 0000000..b280727
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/add-hook.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: add-hook
+# --
+(add-hook HOOK$0 FUNCTION) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/append.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/append.yasnippet
new file mode 100755
index 0000000..cf314b5
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/append.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: append
+# --
+(append $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/apply.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/apply.yasnippet
new file mode 100755
index 0000000..9f23657
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/apply.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: apply
+# --
+(apply $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/aref.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/aref.yasnippet
new file mode 100755
index 0000000..582f212
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/aref.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: aref
+# --
+(aref ARRAY$0 INDEX) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/assq.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/assq.yasnippet
new file mode 100755
index 0000000..5418a5e
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/assq.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: assq
+# --
+(assq KEY$0 LIST) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/autoload.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/autoload.yasnippet
new file mode 100755
index 0000000..8713592
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/autoload.yasnippet
@@ -0,0 +1,5 @@
+#contributor: Xah Lee (XahLee.org)
+#name: autoload
+# --
+(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)
+
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-file-name.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-file-name.yasnippet
new file mode 100755
index 0000000..663482f
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-file-name.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: buffer-file-name
+# --
+(buffer-file-name) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-substring.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-substring.yasnippet
new file mode 100755
index 0000000..3217ab1
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/buffer-substring.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: buffer-substring
+# --
+(buffer-substring START$0 END)
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cdr.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cdr.yasnippet
new file mode 100755
index 0000000..6733410
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cdr.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: cdr
+# --
+(cdr $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cond.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cond.yasnippet
new file mode 100755
index 0000000..36340f1
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/cond.yasnippet
@@ -0,0 +1,7 @@
+#contributor: Xah Lee (XahLee.org)
+#name: cond
+# --
+(cond
+(CONDITION$0 BODY)
+(CONDITION BODY)
+) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/consp.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/consp.yasnippet
new file mode 100755
index 0000000..00f2d84
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/consp.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: consp
+# --
+(consp $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/current-buffer.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/current-buffer.yasnippet
new file mode 100755
index 0000000..66d5a9d
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/current-buffer.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: current-buffer
+# --
+(current-buffer) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/custom-autoload.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/custom-autoload.yasnippet
new file mode 100755
index 0000000..9a71d25
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/custom-autoload.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: custom-autoload
+# --
+(custom-autoload$0 SYMBOL LOAD &optional NOSET) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defalias.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defalias.yasnippet
new file mode 100755
index 0000000..e47da33
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defalias.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: defalias
+# --
+(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/define-key.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/define-key.yasnippet
new file mode 100755
index 0000000..035efe6
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/define-key.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: define-key
+# --
+(define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defsubst.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defsubst.yasnippet
new file mode 100755
index 0000000..7529bf1
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defsubst.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: defsubst
+# --
+(defsubst $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defvar.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defvar.yasnippet
new file mode 100755
index 0000000..cc623d8
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/defvar.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: defvar
+# --
+(defvar SYMBOL &optional INITVALUE "DOCSTRING") \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/delete-region.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/delete-region.yasnippet
new file mode 100755
index 0000000..d61001a
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/delete-region.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: delete-region
+# --
+(delete-region $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/equal.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/equal.yasnippet
new file mode 100755
index 0000000..c85cea7
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/equal.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: equal
+# --
+(equal $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/error.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/error.yasnippet
new file mode 100755
index 0000000..95914b7
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/error.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: error
+# --
+(error "$0" &optional ARGS) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/expand-file-name.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/expand-file-name.yasnippet
new file mode 100755
index 0000000..8f5dad3
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/expand-file-name.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: expand-file-name
+# --
+(expand-file-name $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory.yasnippet
new file mode 100755
index 0000000..d4a77e6
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/file-name-nondirectory.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: file-name-nondirectory
+# --
+(file-name-nondirectory $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/find-file.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/find-file.yasnippet
new file mode 100755
index 0000000..70cb87b
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/find-file.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: find-file
+# --
+(find-file $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/format.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/format.yasnippet
new file mode 100755
index 0000000..c83d5b7
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/format.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: format
+# --
+(format$0 &optional OBJECTS)
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/funcall.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/funcall.yasnippet
new file mode 100755
index 0000000..5d2a307
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/funcall.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: funcall
+# --
+(funcall $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/function.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/function.yasnippet
new file mode 100755
index 0000000..2b39cc5
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/function.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: function
+# --
+(function $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/get.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/get.yasnippet
new file mode 100755
index 0000000..fe55b2e
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/get.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: get
+# --
+(get SYMBOL$0 PROPNAME) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/goto-char.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/goto-char.yasnippet
new file mode 100755
index 0000000..4cbddd4
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/goto-char.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: goto-char
+# --
+(goto-char $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/if.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/if.yasnippet
new file mode 100755
index 0000000..c21133c
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/if.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: if
+# --
+(if $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/interactive.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/interactive.yasnippet
new file mode 100755
index 0000000..ad88e40
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/interactive.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: interactive
+# --
+(interactive) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/let.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/let.yasnippet
new file mode 100755
index 0000000..5d1a40e
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/let.yasnippet
@@ -0,0 +1,6 @@
+#contributor: Xah Lee (XahLee.org)
+#name: let
+# --
+(let ($1 )
+ $0
+) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-beginning-position.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-beginning-position.yasnippet
new file mode 100755
index 0000000..ff465a3
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-beginning-position.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: line-beginning-position
+# --
+(line-beginning-position) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-end-position.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-end-position.yasnippet
new file mode 100755
index 0000000..c40c0e6
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/line-end-position.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: line-end-position
+# --
+(line-end-position) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/list.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/list.yasnippet
new file mode 100755
index 0000000..4ec1c63
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/list.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: list
+# --
+(list $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/looking-at.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/looking-at.yasnippet
new file mode 100755
index 0000000..6bc322c
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/looking-at.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: looking-at
+# --
+(looking-at $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-beginning.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-beginning.yasnippet
new file mode 100755
index 0000000..146d188
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-beginning.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: match-beginning
+# --
+(match-beginning N$0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-end.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-end.yasnippet
new file mode 100755
index 0000000..8841909
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/match-end.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: match-end
+# --
+(match-end N$0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/message.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/message.yasnippet
new file mode 100755
index 0000000..f7a88de
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/message.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: message
+# --
+(message "FORMATSTRING$0" &optional ARGS) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/nth.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/nth.yasnippet
new file mode 100755
index 0000000..eb9057f
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/nth.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: nth
+# --
+(nth N$0 LIST) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-max.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-max.yasnippet
new file mode 100755
index 0000000..ef9fa26
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-max.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: point-max
+# --
+(point-max) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-min.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-min.yasnippet
new file mode 100755
index 0000000..9789afc
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point-min.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: point-min
+# --
+(point-min) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point.yasnippet
new file mode 100755
index 0000000..ef0f7aa
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/point.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: point
+# --
+(point) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/princ.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/princ.yasnippet
new file mode 100755
index 0000000..2397e31
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/princ.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: princ
+# --
+(princ $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/print.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/print.yasnippet
new file mode 100755
index 0000000..9d7ce8c
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/print.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: print
+# --
+(print $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/push.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/push.yasnippet
new file mode 100755
index 0000000..a348f39
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/push.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: push
+# --
+(push $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/put.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/put.yasnippet
new file mode 100755
index 0000000..c5b953e
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/put.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: put
+# --
+(put $0 PROPNAME VALUE) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-backward.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-backward.yasnippet
new file mode 100755
index 0000000..a1d6703
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-backward.yasnippet
Binary files differ
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-forward.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-forward.yasnippet
new file mode 100755
index 0000000..2516b41
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/re-search-forward.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: re-search-forward
+# --
+(re-search-forward REGEXP$0 &optional BOUND NOERROR COUNT) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/region-end.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/region-end.yasnippet
new file mode 100755
index 0000000..e3e61c0
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/region-end.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: region-end
+# --
+(region-end) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/repeat.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/repeat.yasnippet
new file mode 100755
index 0000000..f056ca5
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/repeat.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: repeat
+# --
+(repeat $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string.yasnippet
new file mode 100755
index 0000000..e663569
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp-in-string.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: replace-regexp-in-string
+# --
+(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp.yasnippet
new file mode 100755
index 0000000..fb738c9
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/replace-regexp.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: replace-regexp
+# --
+(replace-regexp REGEXP$0 TO-STRING &optional DELIMITED START END) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/require.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/require.yasnippet
new file mode 100755
index 0000000..cab6fc4
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/require.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: require
+# --
+(require $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/save-excursion.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/save-excursion.yasnippet
new file mode 100755
index 0000000..14e4748
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/save-excursion.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: save-excursion
+# --
+(save-excursion $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-backward.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-backward.yasnippet
new file mode 100755
index 0000000..fad1189
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-backward.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: search-backward
+# --
+(search-backward "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-forward.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-forward.yasnippet
new file mode 100755
index 0000000..7d033c7
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/search-forward.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: search-forward
+# --
+(search-forward "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/set.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/set.yasnippet
new file mode 100755
index 0000000..414e6d4
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/set.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: set
+# --
+(set $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/setq.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/setq.yasnippet
new file mode 100755
index 0000000..f161d8a
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/setq.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: setq
+# --
+(setq $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward.yasnippet
new file mode 100755
index 0000000..a706485
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/skip-chars-backward.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: skip-chars-backward
+# --
+(skip-chars-backward "$0" &optional LIM) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string-match.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string-match.yasnippet
new file mode 100755
index 0000000..0bfdcd6
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string-match.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: string-match
+# --
+(string-match "REGEXP$0" "STRING" &optional START) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string=.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string=.yasnippet
new file mode 100755
index 0000000..7143bf9
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/string=.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: string=
+# --
+(string= $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/stringp.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/stringp.yasnippet
new file mode 100755
index 0000000..7e9b6ed
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/stringp.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: stringp
+# --
+(stringp $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/substring.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/substring.yasnippet
new file mode 100755
index 0000000..51746fa
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/substring.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: substring
+# --
+(substring STRING$0 FROM &optional TO)
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/unless.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/unless.yasnippet
new file mode 100755
index 0000000..5a71370
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/unless.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: unless
+# --
+(unless $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/while.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/while.yasnippet
new file mode 100755
index 0000000..4ed5f79
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/while.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: while
+# --
+(while $0) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/widget-get.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/widget-get.yasnippet
new file mode 100755
index 0000000..2dbaafb
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/widget-get.yasnippet
@@ -0,0 +1,4 @@
+#contributor: Xah Lee (XahLee.org)
+#name: widget-get
+# --
+(widget-get $0 ) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.process.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.process.yasnippet
new file mode 100755
index 0000000..7e09cb8
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.process.yasnippet
@@ -0,0 +1,17 @@
+#contributor: Xah Lee (XahLee.org)
+#name: a function that process a file
+# --
+(defun doThisFile (fpath)
+ "Process the file at path FPATH ..."
+ (let ()
+ ;; create temp buffer without undo record or font lock. (more efficient)
+ ;; first space in temp buff name is necessary
+ (set-buffer (get-buffer-create " myTemp"))
+ (insert-file-contents fpath nil nil nil t)
+
+ ;; process it ...
+ ;; (goto-char 0) ; move to begining of file's content (in case it was open)
+ ;; ... do something here
+ ;; (write-file fpath) ;; write back to the file
+
+ (kill-buffer " myTemp")))
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet
new file mode 100755
index 0000000..015c0f2
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-file.read-lines.yasnippet
@@ -0,0 +1,17 @@
+#contributor: Xah Lee (XahLee.org)
+#name: read lines of a file
+# --
+(defun read-lines (filePath)
+ "Return a list of lines in FILEPATH."
+ (with-temp-buffer
+ (insert-file-contents filePath)
+ (split-string
+ (buffer-string) "\n" t)) )
+
+;; process all lines
+(mapc
+ (lambda (aLine)
+ (message aLine) ; do your stuff here
+ )
+ (read-lines "inputFilePath")
+) \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-word-or-region.yasnippet b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-word-or-region.yasnippet
new file mode 100755
index 0000000..0f3d1b8
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/emacs-lisp-mode/x-word-or-region.yasnippet
@@ -0,0 +1,27 @@
+#contributor: Xah Lee (XahLee.org)
+#name: Command that works on region or word
+# --
+;; example of a command that works on current word or text selection
+(defun down-case-word-or-region ()
+ "Lower case the current word or text selection."
+(interactive)
+(let (pos1 pos2 meat)
+ (if (and transient-mark-mode mark-active)
+ (setq pos1 (region-beginning)
+ pos2 (region-end))
+ (setq pos1 (car (bounds-of-thing-at-point 'symbol))
+ pos2 (cdr (bounds-of-thing-at-point 'symbol))))
+
+ ; now, pos1 and pos2 are the starting and ending positions
+ ; of the current word, or current text selection if exists
+
+ ;; put your code here.
+ $0
+ ;; Some example of things you might want to do
+ (downcase-region pos1 pos2) ; example of a func that takes region as args
+ (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text.
+ (delete-region pos1 pos2) ; get rid of it
+ (insert "newText") ; insert your new text
+
+ )
+)