summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-10-19 11:13:56 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-10-19 11:13:56 -0700
commit697dca9bb667f9cdc012d1eb36347a23e4e9627a (patch)
treef0ffc6b585ea7c7b65da04c980e5921f58ea5bbb
parentf2ea5e744ab5d65da8852806a23eb7fdb2cbe304 (diff)
downloaddotfiles-697dca9bb667f9cdc012d1eb36347a23e4e9627a.tar.gz
move kill-region back M-z -> C-x C-d
Experience has now convinced me that this is more ergonomic.
-rw-r--r--.emacs.d/init-spw.el12
-rw-r--r--.inputrc2
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 <C-backspace> from <backspace> so I
;; want to avoid getting into a habit of typing <C-backspace> 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