mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Refactor minibuffer bindings
+ conform their function names to naming conventions + place ivy-specific version in ivy autoloads
This commit is contained in:
@ -228,3 +228,13 @@ counsel-rg)."
|
||||
(when (doom-popup-p)
|
||||
(doom/popup-close))
|
||||
(ivy-resume))
|
||||
|
||||
;;;###autoload
|
||||
(defun +ivy/backward-kill-word ()
|
||||
"Kill a word backwards, but only if cursor is after `minibuffer-prompt-end',
|
||||
to prevent the 'Text is read-only' warning from monopolizing the minibuffer."
|
||||
(interactive)
|
||||
(call-interactively
|
||||
(if (> (point) (minibuffer-prompt-end))
|
||||
#'backward-kill-word
|
||||
#'ivy-backward-delete-char)))
|
||||
|
Reference in New Issue
Block a user