Fix C-w in ivy not moving up directory

And ensure C-w doesn't affect kill-ring from minibuffer.
This commit is contained in:
Henrik Lissner 2020-01-01 16:02:08 -05:00
parent a332885d33
commit f0e05c1a44
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 11 additions and 2 deletions

View file

@ -143,6 +143,13 @@ line to beginning of line. Same as `evil-delete-back-to-indentation'."
(unless empty-line-p
(indent-according-to-mode))))
;;;###autoload
(defun doom/delete-backward-word (arg)
"Like `backward-kill-word', but doesn't affect the kill-ring."
(interactive "p")
(let (kill-ring)
(backward-kill-word arg)))
;;;###autoload
(defun doom/dumb-indent ()
"Inserts a tab character (or spaces x tab-width)."