From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Wainstead Newsgroups: gmane.emacs.help Subject: Binding f2 u Date: Tue, 9 Feb 2010 08:25:06 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1265734647 25007 80.91.229.12 (9 Feb 2010 16:57:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Feb 2010 16:57:27 +0000 (UTC) Cc: wainstead@gmail.com To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 09 17:57:22 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NetOo-00015g-P3 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Feb 2010 17:57:18 +0100 Original-Received: from localhost ([127.0.0.1]:41197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NetOo-0004gv-5a for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Feb 2010 11:57:18 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!g28g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 74.72.39.198 Original-X-Trace: posting.google.com 1265732707 20528 127.0.0.1 (9 Feb 2010 16:25:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 9 Feb 2010 16:25:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g28g2000yqh.googlegroups.com; posting-host=74.72.39.198; posting-account=X497cgoAAAB7BiTJ3VNbOuXrk-rnMWWL User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:176697 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71768 Archived-At: 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.