* Re: How to add dynamic keybindings? [not found] <mailman.1219.1451389621.843.help-gnu-emacs@gnu.org> @ 2015-12-29 20:28 ` Pascal J. Bourguignon 2015-12-30 18:03 ` Ted Zlatanov 1 sibling, 0 replies; 5+ messages in thread From: Pascal J. Bourguignon @ 2015-12-29 20:28 UTC (permalink / raw) To: help-gnu-emacs 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to add dynamic keybindings? [not found] <mailman.1219.1451389621.843.help-gnu-emacs@gnu.org> 2015-12-29 20:28 ` How to add dynamic keybindings? Pascal J. Bourguignon @ 2015-12-30 18:03 ` Ted Zlatanov 2016-01-02 9:04 ` Marcin Borkowski 1 sibling, 1 reply; 5+ messages in thread From: Ted Zlatanov @ 2015-12-30 18:03 UTC (permalink / raw) To: help-gnu-emacs On Tue, 29 Dec 2015 12:46:54 +0100 Edgar Thier <info@edgarthier.net> wrote: ET> How do I create keybindings based on a configuration file? ET> What I am trying to do is create a minor mode that loads a configuration ET> that associates a key with a certain command. ET> I did not find any information as to how I can create the bindings and ET> update them when the configuration changes. ET> What is the simplest way? You may find https://github.com/yuutayamada/mykie-el useful. Ted ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to add dynamic keybindings? 2015-12-30 18:03 ` Ted Zlatanov @ 2016-01-02 9:04 ` Marcin Borkowski 0 siblings, 0 replies; 5+ messages in thread From: Marcin Borkowski @ 2016-01-02 9:04 UTC (permalink / raw) To: Ted Zlatanov; +Cc: help-gnu-emacs On 2015-12-30, at 19:03, Ted Zlatanov <tzz@lifelogs.com> wrote: > You may find https://github.com/yuutayamada/mykie-el useful. > > Ted Wow, nice! Reminds me of lispy.el. Good to know! Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University ^ permalink raw reply [flat|nested] 5+ messages in thread
* How to add dynamic keybindings? @ 2015-12-29 11:46 Edgar Thier 2015-12-29 14:03 ` Jude DaShiell 0 siblings, 1 reply; 5+ messages in thread From: Edgar Thier @ 2015-12-29 11:46 UTC (permalink / raw) To: help-gnu-emacs 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? ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to add dynamic keybindings? 2015-12-29 11:46 Edgar Thier @ 2015-12-29 14:03 ` Jude DaShiell 0 siblings, 0 replies; 5+ messages in thread From: Jude DaShiell @ 2015-12-29 14:03 UTC (permalink / raw) To: Edgar Thier, help-gnu-emacs If I have it right, define-key may help. On Tue, 29 Dec 2015, Edgar Thier wrote: > Date: Tue, 29 Dec 2015 06:46:54 > From: Edgar Thier <info@edgarthier.net> > To: help-gnu-emacs@gnu.org > Subject: How to add dynamic keybindings? > > 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? > > -- ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-01-02 9:04 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <mailman.1219.1451389621.843.help-gnu-emacs@gnu.org> 2015-12-29 20:28 ` How to add dynamic keybindings? Pascal J. Bourguignon 2015-12-30 18:03 ` Ted Zlatanov 2016-01-02 9:04 ` Marcin Borkowski 2015-12-29 11:46 Edgar Thier 2015-12-29 14:03 ` Jude DaShiell
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).