From: Xavier Maillard <zedek@gnu.org>
To: "tubescreamer808@gmail.com" <tubescreamer808@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Key binding problem
Date: Mon, 26 Feb 2007 19:41:30 +0100 [thread overview]
Message-ID: <3995.1172515290@localhost> (raw)
In-Reply-To: <1172508862.399116.33070@p10g2000cwp.googlegroups.com>
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
next prev parent reply other threads:[~2007-02-26 18:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-26 13:23 Key binding problem tubescreamer808
2007-02-26 13:33 ` weber
2007-02-26 14:19 ` tubescreamer808
2007-02-26 16:12 ` Lennart Borgman (gmail)
[not found] ` <mailman.118.1172506366.7795.help-gnu-emacs@gnu.org>
2007-02-26 16:54 ` tubescreamer808
2007-02-26 18:41 ` Xavier Maillard [this message]
2007-02-26 19:15 ` Drew Adams
2007-02-26 20:28 ` Xavier Maillard
[not found] ` <mailman.136.1172521894.7795.help-gnu-emacs@gnu.org>
2007-02-27 8:50 ` tubescreamer808
2007-02-27 10:15 ` Lennart Borgman (gmail)
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3995.1172515290@localhost \
--to=zedek@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=tubescreamer808@gmail.com \
/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.
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).