[Top][All Lists]

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

Re: customizing key definitions with Customize

From: Juri Linkov
Subject: Re: customizing key definitions with Customize
Date: Wed, 14 May 2008 02:59:27 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

>     Another alternative is to make keybindings first-class entities
>     for Customize like faces with their `defface' definition.
>     So customized and saved settings in a customization file
>     would be like:
>     (custom-set-keybindings
>       ;; custom-set-keybindings was added by Custom.
>       ;; If you edit it by hand, you could mess it up, so be careful.
>       ;; Your init file should contain only one such instance.
>       ;; If there is more than one, they won't work right.
>      '(emacs-lisp-mode-map (([tab] 'lisp-indent-or-complete) ...))
>      ...)
> That looks clean and useful to me.

A question remains to decide is what would be a good user interface
for editing key bindings.  For instance, after typing

  M-x customize-keymap RET emacs-lisp-mode-map RET

what the user will see: all current key bindings in this keymap
(this may be too many as some keymaps have dozens of key bindings),
or an empty list with the single [Insert] button to add new key
bindings that will override the existing ones after saving the
Customization buffer.

Juri Linkov

reply via email to

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