help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key binding problem


From: Xavier Maillard
Subject: Re: Key binding problem
Date: Mon, 26 Feb 2007 19:41:30 +0100

tubescreamer808@gmail.com <tubescreamer808@gmail.com> wrote:

> Thank you very much weber, it works perfectly.
> 
> Alternatively, I have just discovered that using the kbd macro works
> fine also e.g.
>    (local-set-key (kbd "C-|") 'indent-region)
> 
> Don't ask me why I never tried it before since I was already using it
> for the newline-and-indent binding. I guess that sometimes things are
> just too obvious or you're just too stupid...

You are not stupid at all. The two versions are perfectly right

kbd macro is just "the new syntax" to define key bindings. It has
been introduced into emacs 20.x as far as I remember.

[()} is called the XEmacs way and has been supported (and is
still supported) by older emacs.

There is also the string syntax but I do not use it.

Xavier




reply via email to

[Prev in Thread] Current Thread [Next in Thread]