From cbaeffe3a19255ad8500fb8f36b9e7734dfabd90 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 2 May 2020 18:32:39 -0700 Subject: [PATCH] Add snippet for autoload cookie --- oni-elisp/snippets/emacs-lisp-mode/cookie | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 oni-elisp/snippets/emacs-lisp-mode/cookie 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