Make C-w delete backwards and still work for kill region.

This commit is contained in:
josiah 2021-12-03 12:57:44 -06:00
parent b05c6f3d54
commit 5f382639e9

View File

@ -14,6 +14,18 @@
;; Remove the FUCKING frustrating C-z mnimize. Change to undo.
(global-set-key (kbd "C-z") 'undo)
(global-set-key (kbd "C-w") 'backward-kill-word)
;; Use C-w to delete a word backwards
;; with region bind mode,though, i can do that while retaining kill region usage!
(use-package region-bindings-mode
:ensure t
:config
(region-bindings-mode-enable))
(global-set-key (kbd "C-w") 'backward-kill-word)
(define-key region-bindings-mode-map (kbd "C-w") 'kill-region)
(show-paren-mode 1)
(setq show-paren-delay 0)