From a1dce807834b3989efe92d6b53c414089d1b41b1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 18 May 2016 02:14:35 -0400 Subject: [PATCH] core-autoinsert: inline auto-insert-template fn --- core/core-autoinsert.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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)