mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix empty list on +file-templates/insert-license
In case yasnippet hasn't loaded text-mode snippets yet.
This commit is contained in:
@ -100,6 +100,8 @@ evil is loaded and enabled)."
|
|||||||
"Insert a license file template into the current file."
|
"Insert a license file template into the current file."
|
||||||
(interactive)
|
(interactive)
|
||||||
(require 'yasnippet)
|
(require 'yasnippet)
|
||||||
|
(unless (gethash 'text-mode yas--tables)
|
||||||
|
(yas-reload-all t))
|
||||||
(let ((templates
|
(let ((templates
|
||||||
(let (yas-choose-tables-first ; avoid prompts
|
(let (yas-choose-tables-first ; avoid prompts
|
||||||
yas-choose-keys-first)
|
yas-choose-keys-first)
|
||||||
|
Reference in New Issue
Block a user