core-autoinsert: inline auto-insert-template fn
This commit is contained in:
parent
3504cda888
commit
a1dce80783
1 changed files with 4 additions and 6 deletions
|
@ -8,12 +8,10 @@
|
|||
:config
|
||||
(auto-insert-mode 1)
|
||||
|
||||
(defun auto-insert-template (rule)
|
||||
(mapc (lambda (rule)
|
||||
(define-auto-insert
|
||||
(nth 0 rule)
|
||||
(vector `(lambda () (narf/auto-insert-snippet ,(nth 1 rule) ',(nth 2 rule) ,(nth 3 rule))))))
|
||||
|
||||
(mapc 'auto-insert-template
|
||||
`(;; General
|
||||
("/\\.gitignore$" "__" gitignore-mode)
|
||||
("/Dockerfile$" "__" dockerfile-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue