diff --git a/core/core-autoinsert.el b/core/core-autoinsert.el index bf3ba0b9d..b0cdbf44e 100644 --- a/core/core-autoinsert.el +++ b/core/core-autoinsert.el @@ -8,12 +8,10 @@ :config (auto-insert-mode 1) - (defun auto-insert-template (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 + (mapc (lambda (rule) + (define-auto-insert + (nth 0 rule) + (vector `(lambda () (narf/auto-insert-snippet ,(nth 1 rule) ',(nth 2 rule) ,(nth 3 rule)))))) `(;; General ("/\\.gitignore$" "__" gitignore-mode) ("/Dockerfile$" "__" dockerfile-mode)