;;; macros-auto-insert.el
;; for ../core-auto-insert.el

;;;###autoload
(defmacro add-template! (regexp-or-major-mode uuid yas-mode &optional project-only)
  `(define-auto-insert ,regexp-or-major-mode
     (lambda ()
       (unless (or (and ,project-only (not (narf/project-p)))
                   (not (or (eq major-mode ,yas-mode)
                            (symbol-value ,yas-mode))))
         (insert ,uuid)
         (yas-expand-from-trigger-key)
         (if (string-equal ,uuid (s-trim (buffer-string)))
             (erase-buffer)
           (evil-insert-state 1))))))

(provide 'macros-auto-insert)
;;; macros-auto-insert.el ends here

;;; macros-auto-insert.el
;; for ../core-auto-insert.el

;;;###autoload
(defmacro add-template! (regexp-or-major-mode uuid yas-mode &optional project-only)
  `(define-auto-insert ,regexp-or-major-mode
     (lambda ()
       (unless (or (and ,project-only (not (narf/project-p)))
                   (not (or (eq major-mode ,yas-mode)
                            (and (boundp ,yas-mode)
                                 (symbol-value ,yas-mode)))))
         (insert ,uuid)
         (yas-expand-from-trigger-key)
         (if (string-equal ,uuid (s-trim (buffer-string)))
             (erase-buffer)
           (evil-insert-state 1))))))

(provide 'macros-auto-insert)
;;; macros-auto-insert.el ends here

Fix error checking minor-mode for file templates
Fix error checking minor-mode for file templates

hlissner/.emacs.d,UndeadKernel/emacs_doom,aminb/.emacs.d,hlissner/.emacs.d,UndeadKernel/emacs_doom,UndeadKernel/emacs_doom,hlissner/doom-emacs,keoko/.emacs.d,keoko/.emacs.d,hlissner/doom-emacs,hlissner/.emacs.d,hlissner/.emacs.d,hlissner/.emacs.d,hlissner/doom-emacs,hlissner/doom-emacs,aminb/.emacs.d,hlissner/.emacs.d,keoko/.emacs.d,UndeadKernel/emacs_doom,hlissner/.emacs.d,aminb/.emacs.d,aminb/.emacs.d,keoko/.emacs.d,keoko/.emacs.d,UndeadKernel/emacs_doom,UndeadKernel/emacs_doom,hlissner/doom-emacs,hlissner/doom-emacs,keoko/.emacs.d,aminb/.emacs.d,hlissner/.emacs.d,aminb/.emacs.d,aminb/.emacs.d,hlissner/doom-emacs,aminb/.emacs.d,keoko/.emacs.d,keoko/.emacs.d,UndeadKernel/emacs_doom