[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add dynamic keybindings?
From: |
Pascal J. Bourguignon |
Subject: |
Re: How to add dynamic keybindings? |
Date: |
Tue, 29 Dec 2015 21:28:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Edgar Thier <info@edgarthier.net> writes:
> How do I create keybindings based on a configuration file?
>
> What I am trying to do is create a minor mode that loads a configuration
> that associates a key with a certain command.
>
> I did not find any information as to how I can create the bindings and
> update them when the configuration changes.
>
> What is the simplest way?
C-h f define-minor-mode RET
You can either use the KEYMAP argument, (probably best if you have a lot
of bindings), or just use local-set-key in the BODY.
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk