summaryrefslogtreecommitdiff
path: root/snippets/emacs-lisp-mode/add-hook
diff options
context:
space:
mode:
authorBlendoit <blendoit@gmail.com>2020-11-08 16:19:16 -0800
committerBlendoit <blendoit@gmail.com>2020-11-08 16:19:16 -0800
commit3200ed9f268bde61803bd9cadad303c499733b98 (patch)
treec00e9a0d354b0d874a873dd8bc256cc7e466b571 /snippets/emacs-lisp-mode/add-hook
parentbcf9ee060342fa85b0367e25f2398a04118a1324 (diff)
Snippets
Diffstat (limited to 'snippets/emacs-lisp-mode/add-hook')
-rw-r--r--snippets/emacs-lisp-mode/add-hook5
1 files changed, 5 insertions, 0 deletions
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
Copyright 2019--2024 Marius PETER