Refactor minibuffer bindings
+ conform their function names to naming conventions + place ivy-specific version in ivy autoloads
This commit is contained in:
parent
2cd0818801
commit
41a288d21d
4 changed files with 22 additions and 17 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue