emacs-diffs
[Top][All Lists]
Advanced

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

master 2f0ed2280e 1/2: Add find-function-setup-keys bindings for find-li


From: Lars Ingebrigtsen
Subject: master 2f0ed2280e 1/2: Add find-function-setup-keys bindings for find-library commands
Date: Thu, 30 Jun 2022 06:51:01 -0400 (EDT)

branch: master
commit 2f0ed2280e0075c68ab9b110068bf5395fe256e3
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Add find-function-setup-keys bindings for find-library commands
    
    * lisp/emacs-lisp/find-func.el (find-function-setup-keys): Add `L'
    bindings for the find-library family of commands (bug#51240).
---
 etc/NEWS                     | 5 +++++
 lisp/emacs-lisp/find-func.el | 5 ++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/etc/NEWS b/etc/NEWS
index 1ec9603640..0dc7674655 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -314,6 +314,11 @@ startup.  Previously, these functions ignored
 
 * Changes in Emacs 29.1
 
+** New bindings in 'find-function-setup-keys' for 'find-library'.
+When 'find-function-setup-keys' is enabled, 'C-x L' is now bound to
+'find-library', 'C-x 4 L' is now bound to 'find-library-other-window'
+and 'C-x 5 L' is now bound to 'find-library-other-frame'.
+
 +++
 ** New key binding after 'M-x' or 'M-X': 'M-X'.
 Emacs allows different completion predicates to be used with 'M-x'
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index ac84b50b5f..486d5d0861 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -800,7 +800,10 @@ See `find-function-on-key'."
   (define-key ctl-x-5-map "K" 'find-function-on-key-other-frame)
   (define-key ctl-x-map "V" 'find-variable)
   (define-key ctl-x-4-map "V" 'find-variable-other-window)
-  (define-key ctl-x-5-map "V" 'find-variable-other-frame))
+  (define-key ctl-x-5-map "V" 'find-variable-other-frame)
+  (define-key ctl-x-map "L" 'find-library)
+  (define-key ctl-x-4-map "L" 'find-library-other-window)
+  (define-key ctl-x-5-map "L" 'find-library-other-frame))
 
 (provide 'find-func)
 



reply via email to

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