summary refs log tree commit diff
path: root/emacs/etc/snippets/emacs-lisp-mode
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/etc/snippets/emacs-lisp-mode')
-rw-r--r--emacs/etc/snippets/emacs-lisp-mode/defun6
-rw-r--r--emacs/etc/snippets/emacs-lisp-mode/format5
2 files changed, 11 insertions, 0 deletions
diff --git a/emacs/etc/snippets/emacs-lisp-mode/defun b/emacs/etc/snippets/emacs-lisp-mode/defun
new file mode 100644
index 0000000..1c1282b
--- /dev/null
+++ b/emacs/etc/snippets/emacs-lisp-mode/defun
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: function
+# key: d
+# --
+(defun $1 ($2)
+$0)
\ No newline at end of file
diff --git a/emacs/etc/snippets/emacs-lisp-mode/format b/emacs/etc/snippets/emacs-lisp-mode/format
new file mode 100644
index 0000000..2bd648f
--- /dev/null
+++ b/emacs/etc/snippets/emacs-lisp-mode/format
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: format
+# key: f
+# --
+(format "$1" $0)
\ No newline at end of file