all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Looking for the "best" notation for key-binding
@ 2012-09-20 23:11 Chap Harrison
  2012-09-21  0:30 ` John Wiegley
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Chap Harrison @ 2012-09-20 23:11 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 830 bytes --]

Here are examples of key bindings culled from the Emacs FAQ and 
emacswiki.  Each one seems to use a slightly different notation to 
identify the keystroke.


(global-set-key     (quote [f1])   (quote help-for-help))
(global-unset-key   [?\e?{]        )
(global-set-key     [f10] [?\C-x?\e?\e?\C-a?\C-k?\C-g])
(global-unset-key   "\e["          )
(global-set-key     "\C-h" 'delete-backward-char)
(keyboard-translate ?\C-h          ?\C-?)
(global-set-key     (kbd "C-V")    'somefunction)
(global-set-key     (kbd "<f3>")   'comment-dwim)

It's maddening.  I've so far been unsuccessful in getting this binding 
to work:

(global-set-key (kbd "C-;") 'comment-indent)

It seems to bind the command to the *unmodified* ';'.

Isn't there a single, simple, consistent way to create key bindings that 
will always work?

Thanks,
Chap


[-- Attachment #2: Type: text/html, Size: 1943 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-10-19  3:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-20 23:11 Looking for the "best" notation for key-binding Chap Harrison
2012-09-21  0:30 ` John Wiegley
     [not found] ` <mailman.9409.1348187445.855.help-gnu-emacs@gnu.org>
2012-09-21  0:45   ` B. T. Raven
2012-09-21  9:24 ` Peter Dyballa
2012-09-21 15:27   ` Chap Harrison
2012-10-19  3:39     ` Kevin Rodgers
     [not found] ` <mailman.9433.1348219496.855.help-gnu-emacs@gnu.org>
2012-09-21 13:29   ` Stefan Monnier
2012-09-21 14:59     ` Peter Dyballa
2012-09-21 16:29       ` Stefan Monnier
2012-09-21 20:37         ` Peter Dyballa
2012-10-01 14:31 ` Jambunathan K

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.