summaryrefslogtreecommitdiff
path: root/resources/snippets/emacs-lisp-mode/add-hook
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2021-09-13 22:49:27 -0700
committerMarius Peter <marius.peter@tutanota.com>2021-09-13 22:49:27 -0700
commitc3875265ccdd1d72f06a16ab1ca725b7cb2ec35b (patch)
treee6b79624e36b4b632398f318bc4ec04034ec88ee /resources/snippets/emacs-lisp-mode/add-hook
parentcc5cd4196c306b176f8af0124dc3d73b525024b1 (diff)
Consolidated resources and meta files.
Diffstat (limited to 'resources/snippets/emacs-lisp-mode/add-hook')
-rw-r--r--resources/snippets/emacs-lisp-mode/add-hook6
1 files changed, 6 insertions, 0 deletions
diff --git a/resources/snippets/emacs-lisp-mode/add-hook b/resources/snippets/emacs-lisp-mode/add-hook
new file mode 100644
index 0000000..e1019e8
--- /dev/null
+++ b/resources/snippets/emacs-lisp-mode/add-hook
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: add-hook
+# key: hook
+# --
+(add-hook '${1:mode-to-hook-on} '${2:function})
+$0 \ No newline at end of file
Copyright 2019--2024 Marius PETER