aboutsummaryrefslogtreecommitdiffstats
path: root/oni-elisp
diff options
context:
space:
mode:
Diffstat (limited to 'oni-elisp')
-rw-r--r--oni-elisp/snippets/emacs-lisp-mode/cookie5
1 files changed, 5 insertions, 0 deletions
diff --git a/oni-elisp/snippets/emacs-lisp-mode/cookie b/oni-elisp/snippets/emacs-lisp-mode/cookie
new file mode 100644
index 0000000..6fafd3c
--- /dev/null
+++ b/oni-elisp/snippets/emacs-lisp-mode/cookie
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: with-eval-after-load-cookie
+# key: cookie
+# --
+;;;###autoload(with-eval-after-load '${1:`(string-remove-prefix "oni-" (string-remove-suffix ".el" (buffer-name)))`-mode} (require '`(string-remove-suffix ".el" (buffer-name))`)) \ No newline at end of file