From 9e0e42554e0c2619fcb4ce8a8b48da4288c44298 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 4 May 2021 17:27:36 -0500 Subject: Remap C-w to backward-kill-word if the region isn't active --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/init.el b/init.el index f520e02..ef50dc7 100644 --- a/init.el +++ b/init.el @@ -568,7 +568,8 @@ attempt-orderly-shutdown-on-fatal-signal nil find-function-C-source-directory (acdw/find-emacs-source)) - (:global "M-=" count-words) + (:global "M-=" count-words + "C-w" acdw/kill-region-or-backward-word) ;; Remap C-h to DEL -- can be the "help" key (define-key key-translation-map [?\C-h] [?\C-?]) -- cgit 1.4.1-21-gabe81