From: Mike Mattie <codermattie@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs keybinding syntaxes bewilderment
Date: Sat, 15 Dec 2007 23:22:33 -0800 [thread overview]
Message-ID: <20071215232233.2ee6fb64@reforged> (raw)
In-Reply-To: <19df9387-2846-403c-a86d-d361f10645dd@d27g2000prf.googlegroups.com>
[-- Attachment #1.1: Type: text/plain, Size: 1285 bytes --]
On Sat, 15 Dec 2007 08:48:45 -0800 (PST)
rustom <rustompmody@gmail.com> wrote:
> On Dec 15, 3:24 am, Xah Lee <x...@xahlee.org> wrote:
> > recently i took some time to study the various syntax variations for
> > keybinding in emacs.
> > Here's a list:
> > :
> > :
That did confuse me for a while. I decided it was time to make it at least consistent in my
configuration. After asking for some advice I settled on (kbd). This function below takes
the pain out of keybindings.
I use it as follows:
M-x insert-key-notation
it then prompts for the key sequence, and generates the code.
(defun insert-key-notation ()
"inject a complete \(kbd \"sequence\"\) with key notation for a key sequence given by prompt"
(interactive)
(insert "(kbd \"")
(insert (format-kbd-macro (read-key-sequence "Key? " nil t)))
(insert "\")")
)
> Thanks Xah for an informative (for me at least) rant. Ive bookmarked
> it!
> I am using emacs for the last 15 years but every time I try to do a
> define-key or global-set-key, I have to fish around in the info pages
> to get the key syntax right.
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2007-12-16 7:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-14 22:24 emacs keybinding syntaxes bewilderment Xah Lee
2007-12-14 23:15 ` B. T. Raven
2007-12-15 1:57 ` Xah Lee
2007-12-15 16:48 ` rustom
2007-12-16 7:22 ` Mike Mattie [this message]
[not found] ` <mailman.5061.1197789814.18990.help-gnu-emacs@gnu.org>
2007-12-16 8:25 ` rustom
2007-12-16 8:56 ` Harald Hanche-Olsen
2007-12-16 16:39 ` rustom
2007-12-16 19:37 ` Harald Hanche-Olsen
2007-12-16 23:21 ` Peter Dyballa
2007-12-16 23:33 ` Lennart Borgman (gmail)
2007-12-16 23:50 ` Peter Dyballa
2007-12-17 10:17 ` Sebastian Tennant
[not found] ` <mailman.5091.1197886901.18990.help-gnu-emacs@gnu.org>
2007-12-17 12:56 ` Romain Francoise
2007-12-17 9:38 ` Tassilo Horn
2007-12-18 6:12 ` Xah Lee
2007-12-19 2:27 ` Xah
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=20071215232233.2ee6fb64@reforged \
--to=codermattie@gmail.com \
--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.