Fix error checking minor-mode for file templates
This commit is contained in:
parent
f05850767c
commit
4d092d38d3
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(unless (or (and ,project-only (not (narf/project-p)))
|
(unless (or (and ,project-only (not (narf/project-p)))
|
||||||
(not (or (eq major-mode ,yas-mode)
|
(not (or (eq major-mode ,yas-mode)
|
||||||
(symbol-value ,yas-mode))))
|
(and (boundp ,yas-mode)
|
||||||
|
(symbol-value ,yas-mode)))))
|
||||||
(insert ,uuid)
|
(insert ,uuid)
|
||||||
(yas-expand-from-trigger-key)
|
(yas-expand-from-trigger-key)
|
||||||
(if (string-equal ,uuid (s-trim (buffer-string)))
|
(if (string-equal ,uuid (s-trim (buffer-string)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue