Add snippet for autoload cookie
This commit is contained in:
parent
45b66d826a
commit
cbaeffe3a1
1 changed files with 5 additions and 0 deletions
5
oni-elisp/snippets/emacs-lisp-mode/cookie
Normal file
5
oni-elisp/snippets/emacs-lisp-mode/cookie
Normal file
|
@ -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))`))
|
Loading…
Reference in a new issue