From 5f382639e951b76cca67ecd518808abcb36ecca8 Mon Sep 17 00:00:00 2001 From: josiah Date: Fri, 3 Dec 2021 12:57:44 -0600 Subject: [PATCH] Make C-w delete backwards and still work for kill region. --- .emacs.d/jlj-generic.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.emacs.d/jlj-generic.el b/.emacs.d/jlj-generic.el index 23ffc3a..dd752c4 100644 --- a/.emacs.d/jlj-generic.el +++ b/.emacs.d/jlj-generic.el @@ -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)