summaryrefslogtreecommitdiff
path: root/lisp/bindings.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-03-23 14:29:03 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2022-03-23 14:29:03 +0100
commit36810a8164db12766f532f268f322afe1e601b6a (patch)
treefa1f632337c3cc53845733ae71daa6693ddf03dc /lisp/bindings.el
parente5e5d85369cdae669af78feb22a924a2a493c48f (diff)
downloademacs-36810a8164db12766f532f268f322afe1e601b6a.tar.gz
Reinstate `C-M-<delete>'
* lisp/bindings.el (global-map): Reinstate `C-M-<delete>' and `C-M-<backspace>' (bug#29430). These used to kill X, but that hasn't been the case in any common GNU/Linux distributions for decades.
Diffstat (limited to 'lisp/bindings.el')
-rw-r--r--lisp/bindings.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 8ae8c3d60ef..1913f826004 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -1402,10 +1402,8 @@ if `inhibit-field-text-motion' is non-nil."
(define-key esc-map [?\C-\ ] 'mark-sexp)
(define-key esc-map "\C-d" 'down-list)
(define-key esc-map "\C-k" 'kill-sexp)
-;;; These are dangerous in various situations,
-;;; so let's not encourage anyone to use them.
-;;;(define-key global-map [C-M-delete] 'backward-kill-sexp)
-;;;(define-key global-map [C-M-backspace] 'backward-kill-sexp)
+(define-key global-map [C-M-delete] 'backward-kill-sexp)
+(define-key global-map [C-M-backspace] 'backward-kill-sexp)
(define-key esc-map [C-delete] 'backward-kill-sexp)
(define-key esc-map [C-backspace] 'backward-kill-sexp)
(define-key esc-map "\C-n" 'forward-list)