From: Chong Yidong <cyd@stupidchicken.com>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 4472@emacsbugs.donarmstrong.com
Subject: bug#4472: 23.1; Emacs manual not too helpful about binding keys
Date: Fri, 18 Sep 2009 19:11:10 -0400 [thread overview]
Message-ID: <87zl8ronld.fsf@stupidchicken.com> (raw)
> I couldn't even find the form (kbd...) in the manual, and I thought
> that was what we are now recommending in general (no?).
From the manual:
There are several ways to write a key binding using Lisp. The
simplest is to use the `kbd' macro, which converts a textual
representation of a key sequence--similar to how we have written key
sequences in this manual--into a form that can be passed as an argument
to `global-set-key'. For example, here's how to bind `C-z' to `shell'
(*note Interactive Shell::):
(global-set-key (kbd "C-z") 'shell)
etc., etc.
next reply other threads:[~2009-09-18 23:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-18 23:11 Chong Yidong [this message]
2009-09-18 23:27 ` bug#4472: 23.1; Emacs manual not too helpful about binding keys Drew Adams
-- strict thread matches above, loose matches on Subject: below --
2009-09-17 22:51 Drew Adams
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=87zl8ronld.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=4472@emacsbugs.donarmstrong.com \
--cc=drew.adams@oracle.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).