From 3200ed9f268bde61803bd9cadad303c499733b98 Mon Sep 17 00:00:00 2001 From: Blendoit Date: Sun, 8 Nov 2020 16:19:16 -0800 Subject: Snippets --- snippets/emacs-lisp-mode/add-hook | 5 +++++ snippets/emacs-lisp-mode/if | 7 +++++++ snippets/emacs-lisp-mode/lambda | 7 +++++++ snippets/emacs-lisp-mode/setq | 5 +++++ 4 files changed, 24 insertions(+) create mode 100644 snippets/emacs-lisp-mode/add-hook create mode 100644 snippets/emacs-lisp-mode/if create mode 100644 snippets/emacs-lisp-mode/lambda create mode 100644 snippets/emacs-lisp-mode/setq (limited to 'snippets/emacs-lisp-mode') diff --git a/snippets/emacs-lisp-mode/add-hook b/snippets/emacs-lisp-mode/add-hook new file mode 100644 index 0000000..1fcf995 --- /dev/null +++ b/snippets/emacs-lisp-mode/add-hook @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: add-hook +# key: hook +# -- +(add-hook '${1:mode-to-hook-on} '${2:function}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/if b/snippets/emacs-lisp-mode/if new file mode 100644 index 0000000..8b464af --- /dev/null +++ b/snippets/emacs-lisp-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +(if (${1:condition}) + (${2:then}) + ${3:else}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/lambda b/snippets/emacs-lisp-mode/lambda new file mode 100644 index 0000000..9d11249 --- /dev/null +++ b/snippets/emacs-lisp-mode/lambda @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: lambda +# key: lambda +# -- +(lambda (${1:argument(s)}) + "${2:Docstring}" + $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/setq b/snippets/emacs-lisp-mode/setq new file mode 100644 index 0000000..f315eae --- /dev/null +++ b/snippets/emacs-lisp-mode/setq @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: setq +# key: setq +# -- +(setq $0) \ No newline at end of file -- cgit v1.2.3