Fix empty list on +file-templates/insert-license
In case yasnippet hasn't loaded text-mode snippets yet.
This commit is contained in:
parent
24282a454e
commit
59b57b7eae
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ evil is loaded and enabled)."
|
|||
"Insert a license file template into the current file."
|
||||
(interactive)
|
||||
(require 'yasnippet)
|
||||
(unless (gethash 'text-mode yas--tables)
|
||||
(yas-reload-all t))
|
||||
(let ((templates
|
||||
(let (yas-choose-tables-first ; avoid prompts
|
||||
yas-choose-keys-first)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue