mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -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."
|
||||
(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)
|
||||
|
Reference in New Issue
Block a user