diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-02-07 13:30:33 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-02-07 13:30:42 +0100 |
commit | a6a5d6a27a86396ab96662fa158cdcc854bd777b (patch) | |
tree | 7bb91624f74d1e46451158709f589176656d7238 /lisp/bindings.el | |
parent | 7e48430a43bbf7a2bbe347540dc346d0129df2ec (diff) | |
download | emacs-a6a5d6a27a86396ab96662fa158cdcc854bd777b.tar.gz |
Move 'revert-buffer' global binding to 'C-x g g'
* lisp/bindings.el: Define ctl-x-g-map and bind 'revert-buffer' to
'C-x x g' globally.
* doc/emacs/files.texi: Replace 'C-x g' with 'C-x x g'.
* etc/NEWS: Document the change (bug#46300).
Diffstat (limited to 'lisp/bindings.el')
-rw-r--r-- | lisp/bindings.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el index 9ea188d1a00..35adfa8172c 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -1413,7 +1413,12 @@ if `inhibit-field-text-motion' is non-nil." (define-key ctl-x-map "z" 'repeat) -(define-key ctl-x-map "g" #'revert-buffer) +(defvar ctl-x-x-map + (let ((map (make-sparse-keymap))) + (define-key map "g" #'revert-buffer) + map) + "Keymap for subcommands of C-x x.") +(define-key ctl-x-map "x" ctl-x-x-map) (define-key esc-map "\C-l" 'reposition-window) |