From 697dca9bb667f9cdc012d1eb36347a23e4e9627a Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 19 Oct 2020 11:13:56 -0700 Subject: move kill-region back M-z -> C-x C-d Experience has now convinced me that this is more ergonomic. --- .emacs.d/init-spw.el | 12 +++++------- .inputrc | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el index 2b81f52c..df1f32c5 100644 --- a/.emacs.d/init-spw.el +++ b/.emacs.d/init-spw.el @@ -403,14 +403,12 @@ add places the library might be available to `load-path'." ;; likely to still be available in other major modes, and this has to be a key ;; which can also be bound in .inputrc (so C-z is out as that is used for ;; shell job control)) -(global-set-key "\M-z" #'kill-region) +;; (don't need `list-directory' as always use dired, so no need to rebind that +;; somewhere) +(global-set-key "\C-x\C-d" #'kill-region) -;; ... and resettle the previous occupant of M-z -(global-set-key "\M-Z" #'zap-to-char) - -;; ... and also make `zap-up-to-char' available -;; (don't need `list-directory' as always use dired) -(global-set-key "\C-x\C-d" #'zap-up-to-char) +;; also make `zap-up-to-char' available +(global-set-key "\M-Z" #'zap-up-to-char) ;; We cannot reliably distinguish from so I ;; want to avoid getting into a habit of typing into diff --git a/.inputrc b/.inputrc index c911e7f4..9e4afb48 100644 --- a/.inputrc +++ b/.inputrc @@ -3,7 +3,7 @@ $include /etc/inputrc # --- bindings "\C-@": set-mark -"\ez": kill-region +"\C-x\C-d": kill-region "\ew": copy-region-as-kill # --- settings -- cgit v1.2.3