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