GNU bug report logs - #55301
Wishlist: Customize should have a way to edit keymaps

Previous Next

Package: emacs;

Reported by: Phil Hudson <phil.hudson <at> iname.com>

Date: Sat, 7 May 2022 14:08:02 UTC

Severity: wishlist

Found in version 27.2

Full log


Message #59 received at 55301 <at> debbugs.gnu.org (full text, mbox):

From: Phil Hudson <phil.hudson <at> iname.com>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 55301 <at> debbugs.gnu.org
Subject: Re: bug#55301: 27.2; RFE: Auto-create defcustom for declared minor
 mode keymap
Date: Wed, 18 May 2022 11:59:12 +0100
On Wed, 18 May 2022 at 08:13, Robert Pluim <rpluim <at> gmail.com> wrote:
>
> >>>>> On Tue, 17 May 2022 19:27:14 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> said:
>
>     Lars> Robert Pluim <rpluim <at> 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))))

Exactly. It should include

    :type '(alist :key-type key-sequence :value-type function)

as I suggested 9 days ago in this thread.




This bug report was last modified 3 years and 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.