[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to add button to emacs that play a elisp code
From: |
Gian Uberto Lauri |
Subject: |
Re: how to add button to emacs that play a elisp code |
Date: |
Thu, 11 Sep 2014 10:40:07 +0200 |
My apologies for breaking the threading, I lost the original message I
am replying to.
In Emacs you can have global keybindings (that are active no matter
what is the current buffer) and local ones (active only in the buffers
they are defined for).
The functions to use are
(global-set-key [(super meta i)]
'(lambda ()
(interactive)
(ispell-change-dictionary "italian")))
(this example changes the ispell dictionary to Italian and is bound to
super meta i)
the other function is
(local-set-key [?\s-w] 'jde-complete)
This is another syntax to use the "super" modifier.
At this time the 'standard' us(altgr-intl) X11 keyboard layout only
gives me Super, but I plan to hack that to have hyper back.
Despite not this standard, these modifiers from the space cadet
keyboard give you plenty of quick-to-access keystroke that do not need
a prefix you can use for your own customization.
--
/\ ___ Ubuntu: ancient
/___/\_|_|\_|__|___Gian Uberto Lauri_____ African word
//--\| | \| | Integralista GNUslamico meaning "I can
\/ coltivatore diretto di software not install
giĆ sistemista a tempo (altrui) perso... Debian"
Warning: gnome-config-daemon considered more dangerous than GOTO
- how to add button to emacs that play a elisp code, Renato Pontefice, 2014/09/11
- Re: how to add button to emacs that play a elisp code, Gian Uberto Lauri, 2014/09/11
- Re: how to add button to emacs that play a elisp code,
Gian Uberto Lauri <=
- Message not available
- Re: how to add button to emacs that play a elisp code, Emanuel Berg, 2014/09/11
- Re: how to add button to emacs that play a elisp code, Pascal J. Bourguignon, 2014/09/11
- Re: how to add button to emacs that play a elisp code, Emanuel Berg, 2014/09/11
- Re: how to add button to emacs that play a elisp code, Michael Heerdegen, 2014/09/11
- Message not available
- Re: how to add button to emacs that play a elisp code, Emanuel Berg, 2014/09/11
- Re: how to add button to emacs that play a elisp code, Michael Heerdegen, 2014/09/11