bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#55301: 27.2; RFE: Auto-create defcustom for declared minor mode keym


From: Robert Pluim
Subject: bug#55301: 27.2; RFE: Auto-create defcustom for declared minor mode keymap
Date: Wed, 18 May 2022 09:13:26 +0200

>>>>> On Tue, 17 May 2022 19:27:14 +0200, Lars Ingebrigtsen <larsi@gnus.org> 
>>>>> said:

    Lars> Robert Pluim <rpluim@gmail.com> writes:
    >> You mean using customize for keymaps? Iʼd say 'no', but Iʼm not an
    >> Emacs maintainer.

    Lars> Yes, adding a defcustom now for keymaps would be pointless.

    Lars> But it'd be nice if a defcustom interface for keymaps existed.

Something like this?

(defcustom keymap-additions nil
"Alist of bindings to add to keymaps at startup.
Keys are keymap symbols, values are lists of conses, format
(key-binding . command)

Where KEY-BINDING is a kbd format key specification, and COMMAND is an
Emacs command.")

So you could have that be

'((fundamental-mode-map . (("C-a" . mark-whole-buffer)
                           ("C-b" . backward-word)))
  (elisp-mode-map . (("C-a" . mark-defun))))

Robert
-- 





reply via email to

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