mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix error checking minor-mode for file templates
This commit is contained in:
@ -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)))
|
||||||
|
Reference in New Issue
Block a user