General refactor of modules
General code and comment improvements. Also, removed the :desc's for csv-mode because map! is currently unable to set which-key descriptions mode-locally, and should be avoided for anything but global keybinds. This will be fixed when General is introduced into Doom.
This commit is contained in:
parent
89b83f2457
commit
c58077810d
15 changed files with 59 additions and 57 deletions
|
@ -22,8 +22,9 @@ ignored. This makes it easy to override built-in snippets with private ones."
|
|||
(let* ((gc-cons-threshold doom-gc-cons-upper-limit)
|
||||
(choices (cl-remove-duplicates choices :test #'+snippets--remove-p)))
|
||||
(if (cdr choices)
|
||||
(let ((prompt-functions (remq '+snippets-prompt-private yas-prompt-functions)))
|
||||
(run-hook-with-args-until-success 'prompt-functions prompt choices fn))
|
||||
(cl-loop for fn in (cdr (memq '+snippets-prompt-private yas-prompt-functions))
|
||||
if (funcall prompt choices fn)
|
||||
return it)
|
||||
(car choices)))))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue