doom-minibuffer-kill-word: fall back to evil/ivy delete char
This commit is contained in:
parent
db1deb4a18
commit
90b4e22008
1 changed files with 7 additions and 2 deletions
|
@ -6,8 +6,13 @@
|
||||||
`minibuffer-prompt-end', to prevent the 'Text is read-only' warning from
|
`minibuffer-prompt-end', to prevent the 'Text is read-only' warning from
|
||||||
monopolizing the minibuffer."
|
monopolizing the minibuffer."
|
||||||
(interactive)
|
(interactive)
|
||||||
(when (> (point) (minibuffer-prompt-end))
|
(call-interactively
|
||||||
(call-interactively 'backward-kill-word)))
|
(cond ((> (point) (minibuffer-prompt-end))
|
||||||
|
'backward-kill-word)
|
||||||
|
((and (fboundp 'evil-ex-p) (evil-ex-p))
|
||||||
|
'evil-ex-delete-backward-char)
|
||||||
|
(t
|
||||||
|
'ivy-backward-delete-char))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom-minibuffer-kill-line ()
|
(defun doom-minibuffer-kill-line ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue