Fix error checking minor-mode for file templates

This commit is contained in:
Henrik Lissner 2015-06-24 15:33:36 +02:00
parent f05850767c
commit 4d092d38d3

View File

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