summary refs log tree commit diff
path: root/snippets/emacs-lisp-mode
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/emacs-lisp-mode')
-rw-r--r--snippets/emacs-lisp-mode/defun6
-rw-r--r--snippets/emacs-lisp-mode/format5
-rw-r--r--snippets/emacs-lisp-mode/header18
3 files changed, 29 insertions, 0 deletions
diff --git a/snippets/emacs-lisp-mode/defun b/snippets/emacs-lisp-mode/defun
new file mode 100644
index 0000000..1c1282b
--- /dev/null
+++ b/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/snippets/emacs-lisp-mode/format b/snippets/emacs-lisp-mode/format
new file mode 100644
index 0000000..2bd648f
--- /dev/null
+++ b/snippets/emacs-lisp-mode/format
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: format
+# key: f
+# --
+(format "$1" $0)
\ No newline at end of file
diff --git a/snippets/emacs-lisp-mode/header b/snippets/emacs-lisp-mode/header
new file mode 100644
index 0000000..b868f51
--- /dev/null
+++ b/snippets/emacs-lisp-mode/header
@@ -0,0 +1,18 @@
+# -*- mode: snippet -*-
+# name: header
+# key: header
+# --
+;;; `(file-name-nondirectory (buffer-file-name))` --- ${1:summary} -*- lexical-binding: t -*-
+;; Author: Franck Cuny <franck@fcuny.net>
+
+;;; Commentary:
+
+;; ${2:commentary}
+
+;;; Code:
+
+${3:(message "Hello World!")}
+
+(provide '`(file-name-nondirectory (buffer-file-name))`)
+
+;;; `(file-name-nondirectory (buffer-file-name))` ends here
\ No newline at end of file