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)))