From 4d092d38d37a19caf68e7bd4d9ffcc963b6ded38 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 24 Jun 2015 15:33:36 +0200 Subject: [PATCH] Fix error checking minor-mode for file templates --- core/lib/macros-auto-insert.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/lib/macros-auto-insert.el b/core/lib/macros-auto-insert.el index 83217765a..9809cd3e6 100644 --- a/core/lib/macros-auto-insert.el +++ b/core/lib/macros-auto-insert.el @@ -7,7 +7,8 @@ (lambda () (unless (or (and ,project-only (not (narf/project-p))) (not (or (eq major-mode ,yas-mode) - (symbol-value ,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)))