all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steve Wainstead <wainstead@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: wainstead@gmail.com
Subject: Binding f2 u
Date: Tue, 9 Feb 2010 08:25:06 -0800 (PST)	[thread overview]
Message-ID: <ba2bb7e6-b34b-4714-8e05-63cf56ebd7b8@g28g2000yqh.googlegroups.com> (raw)

I'm trying to bind "f2 u" to a custom function. After spelunking the
*Help* and googling, it seems F2 is the prefix key for the sparse
keymap "2C-command," or else "2c-mode-map."

By default, when one starts emacs -q -nw, f2-s starts two column mode;
so something must live in the global map? Because I cannot bind
anything to either 2C-command or 2c-mode-map:

(define-key 2C-command "u" 'sw-update-builds)
or
(define-key 2c-mode-map "u" 'sw-update-builds)

These fail because 2C-command  and 2c-mode-map are void, while:

(define-key ctl-x-map "9" 'sw-update-builds)

does work. How can I bind to f2-u without wiping out the existing mode
map, which seems to be undefined even after I load 2 column mode? I'll
wind up just creating my own sparse keymap for f2 otherwise.


             reply	other threads:[~2010-02-09 16:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-09 16:25 Steve Wainstead [this message]
2010-02-09 21:02 ` Binding f2 u Eduard Wiebe
2010-02-09 22:01   ` Steve Wainstead

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=ba2bb7e6-b34b-4714-8e05-63cf56ebd7b8@g28g2000yqh.googlegroups.com \
    --to=wainstead@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.