all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: William Case <billlinux@rogers.com>
To: EMACS List <help-gnu-emacs@gnu.org>
Subject: Curiostiy question re: keybinding ??
Date: Mon, 23 Jul 2007 15:32:55 -0400	[thread overview]
Message-ID: <1185219175.2883.126.camel@CASE> (raw)

Hi;

Found the following hint in the emacs FAQ.  "To interactively bind keys
for all modes, type `M-x global-set-key <RET> KEY CMD <RET>'
Use the following "trick": First bind the key interactively, then
immediately type `C-x <ESC> <ESC> C-a C-k C-g'". Then I yanked
to .emacs.

Used it; it works.  However, I get the following;

(global-set-key "^Cc" 'compile)  ;; Ctrl-c
(global-set-key "\363" 'shell-command)  ;; Meta (Alt)-s 
(global-set-key (quote [8388723]) (quote shell))  ;; Super (Win)-s
(global-set-key (quote [8388631]) (quote kill-whole-line))  ;;
Ctrl-Super-w

I replaced the (quote "command") with 'compile and 'shell-command in the
first and second line. It reads even easier.  I like the formulation of
the keys as "^Cc"; they are simple to understand and make common sense.
But why did emacs generate the various numerical forms. Is this the
best/fastest way to do a binding?

It would be hard to remember what the numbers mean with out some
comments or a lot of memorization.

Is the first line binding style going out of use (replaced by the kbd
keyword) or coming in?  What would be the ^C (Ctrl) equivalent for Meta
-- ^M; and, Super -- ^s; and, Shift -- ^,?  What about Fx keys and
others?

This is not a complaint, nor I am I looking for a big dissertation.  I
have been to all the info, wiki and tidy sites.  Just wondering.

-- 
Regards Bill

             reply	other threads:[~2007-07-23 19:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-23 19:32 William Case [this message]
2007-07-24 20:51 ` Curiostiy question re: keybinding ?? Nikolaj Schumacher
2007-07-24 21:10   ` William Case

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=1185219175.2883.126.camel@CASE \
    --to=billlinux@rogers.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.