* change autocompletion key in emacs
@ 2011-07-15 11:04 Pedro Sa Costa
2011-07-15 16:15 ` Tassilo Horn
2011-07-15 16:30 ` Deniz Dogan
0 siblings, 2 replies; 4+ messages in thread
From: Pedro Sa Costa @ 2011-07-15 11:04 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I would like to change the autocompletion shortcut (M-/) im emacs to (M- _).
How can I do that?
--
Best regards,
-----------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: change autocompletion key in emacs
2011-07-15 11:04 change autocompletion key in emacs Pedro Sa Costa
@ 2011-07-15 16:15 ` Tassilo Horn
2011-07-15 16:30 ` Deniz Dogan
1 sibling, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2011-07-15 16:15 UTC (permalink / raw)
To: help-gnu-emacs
Pedro Sa Costa <psdc1978@gmail.com> writes:
Hi Pedro,
> I would like to change the autocompletion shortcut (M-/) im emacs to
> (M- _). How can I do that?
Put
(global-set-key (kbd "M-_") 'dabbrev-expand)
into your .emacs.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: change autocompletion key in emacs
2011-07-15 11:04 change autocompletion key in emacs Pedro Sa Costa
2011-07-15 16:15 ` Tassilo Horn
@ 2011-07-15 16:30 ` Deniz Dogan
2011-07-16 8:12 ` Martin
1 sibling, 1 reply; 4+ messages in thread
From: Deniz Dogan @ 2011-07-15 16:30 UTC (permalink / raw)
To: help-gnu-emacs
On 2011-07-15 13:04, Pedro Sa Costa wrote:
> Hi,
>
> I would like to change the autocompletion shortcut (M-/) im emacs to (M- _).
> How can I do that?
>
>
Put this in your init file:
(global-set-key (kbd "M-_") 'dabbrev-expand)
Deniz
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: change autocompletion key in emacs
2011-07-15 16:30 ` Deniz Dogan
@ 2011-07-16 8:12 ` Martin
0 siblings, 0 replies; 4+ messages in thread
From: Martin @ 2011-07-16 8:12 UTC (permalink / raw)
To: help-gnu-emacs
just a small tip -- in case you haven't try already -- use hippie-expand
instead of simple dabbrev-expand.
(when (load "hippie-exp" t)
(global-unset-key "\M-/")
(global-set-key "\M-/" 'hippie-expand))
in your case use (M-_)
If you change it because your local keybord mapping (ie. not english) has
different symbol on the same physical key, you may like to have
*-expand being mapped to both keys, just as i do for
Czech keyboard layout:
My .emacs contains:
(when (load "hippie-exp" t)
(global-unset-key "\M-/")
(global-set-key "\M-/" 'hippie-expand)
;; for CZE keybord mapping if in use: '/' == '-'
(global-unset-key "\M--")
(global-set-key "\M--" 'hippie-expand))
m.
On Fri, Jul 15, 2011 at 06:30:04PM +0200, Deniz Dogan wrote:
> On 2011-07-15 13:04, Pedro Sa Costa wrote:
> >Hi,
> >
> >I would like to change the autocompletion shortcut (M-/) im emacs to (M- _).
> >How can I do that?
> >
> >
>
> Put this in your init file:
>
> (global-set-key (kbd "M-_") 'dabbrev-expand)
>
> Deniz
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-16 8:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-15 11:04 change autocompletion key in emacs Pedro Sa Costa
2011-07-15 16:15 ` Tassilo Horn
2011-07-15 16:30 ` Deniz Dogan
2011-07-16 8:12 ` Martin
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).