emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 657641f: Bind clone-buffer to C-x x n


From: Lars Ingebrigtsen
Subject: master 657641f: Bind clone-buffer to C-x x n
Date: Mon, 8 Feb 2021 01:52:26 -0500 (EST)

branch: master
commit 657641fb83b927a8da18bccfcf843b0a3b720755
Author: Sean Whitton <spwhitton@spwhitton.name>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Bind clone-buffer to C-x x n
    
    * lisp/bindings.el (ctl-x-x-map): Bind clone-buffer.
    * etc/NEWS: Document the change (bug#46369).
---
 etc/NEWS         | 5 +++--
 lisp/bindings.el | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index b3d53bf..05a8beb 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -241,8 +241,9 @@ search buffer due to too many matches being highlighted.
 ** A new keymap for buffer actions has been added.
 The 'C-x x' keymap now holds keystrokes for various buffer-oriented
 commands.  The new keystrokes are 'C-x x g' ('revert-buffer'),
-'C-x x r' ('rename-buffer'), 'C-x x u' ('rename-uniquely'),
-'C-x x i' ('insert-buffer') and 'C-x x t' ('toggle-truncate-lines').
+'C-x x r' ('rename-buffer'), 'C-x x u' ('rename-uniquely'), 'C-x x n'
+('clone-buffer'), 'C-x x i' ('insert-buffer') and 'C-x x t'
+('toggle-truncate-lines').
 
 
 * Editing Changes in Emacs 28.1
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 9462468..2f4bab1 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -1418,6 +1418,7 @@ if `inhibit-field-text-motion' is non-nil."
     (define-key map "g" #'revert-buffer)
     (define-key map "r" #'rename-buffer)
     (define-key map "u" #'rename-uniquely)
+    (define-key map "n" #'clone-buffer)
     (define-key map "i" #'insert-buffer)
     (define-key map "t" #'toggle-truncate-lines)
     map)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]