mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix "Keyword argument :when not one of" error
Occurs when expanding file templates with a :when clause. +file-templates--expand wasn't anticipating it; throwing that error.
This commit is contained in:
@ -58,7 +58,7 @@ these properties:
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(cl-defun +file-templates--expand (pred &key project mode trigger ignore)
|
(cl-defun +file-templates--expand (pred &key project mode trigger ignore _when)
|
||||||
"Auto insert a yasnippet snippet into current file and enter insert mode (if
|
"Auto insert a yasnippet snippet into current file and enter insert mode (if
|
||||||
evil is loaded and enabled)."
|
evil is loaded and enabled)."
|
||||||
(when (and pred (not ignore))
|
(when (and pred (not ignore))
|
||||||
|
Reference in New Issue
Block a user