all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: mar@centrum.cz (Martin)
To: help-gnu-emacs@gnu.org
Subject: Re: change autocompletion key in emacs
Date: Sat, 16 Jul 2011 10:12:05 +0200	[thread overview]
Message-ID: <20110716081205.GA9673@chocholous.lan> (raw)
In-Reply-To: <4E206B0C.5030800@dogan.se>

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
>



      reply	other threads:[~2011-07-16  8:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110716081205.GA9673@chocholous.lan \
    --to=mar@centrum.cz \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.