diff options
author | Case Duckworth | 2021-05-04 17:27:36 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-04 17:27:36 -0500 |
commit | 9e0e42554e0c2619fcb4ce8a8b48da4288c44298 (patch) | |
tree | d7a8a57a68038bc2d428fa0f13e644d93f861f11 /init.el | |
parent | Remap C-h to DEL (diff) | |
download | emacs-9e0e42554e0c2619fcb4ce8a8b48da4288c44298.tar.gz emacs-9e0e42554e0c2619fcb4ce8a8b48da4288c44298.zip |
Remap C-w to backward-kill-word if the region isn't active
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init.el b/init.el index f520e02..ef50dc7 100644 --- a/init.el +++ b/init.el | |||
@@ -568,7 +568,8 @@ | |||
568 | attempt-orderly-shutdown-on-fatal-signal nil | 568 | attempt-orderly-shutdown-on-fatal-signal nil |
569 | find-function-C-source-directory (acdw/find-emacs-source)) | 569 | find-function-C-source-directory (acdw/find-emacs-source)) |
570 | 570 | ||
571 | (:global "M-=" count-words) | 571 | (:global "M-=" count-words |
572 | "C-w" acdw/kill-region-or-backward-word) | ||
572 | 573 | ||
573 | ;; Remap C-h to DEL -- <f1> can be the "help" key | 574 | ;; Remap C-h to DEL -- <f1> can be the "help" key |
574 | (define-key key-translation-map [?\C-h] [?\C-?]) | 575 | (define-key key-translation-map [?\C-h] [?\C-?]) |