From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Creating a "shortcut" key for "C-c C-" Date: Tue, 22 Apr 2003 08:15:45 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <8465p7oy5q.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050994274 8324 80.91.224.249 (22 Apr 2003 06:51:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2003 06:51:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 22 08:51:11 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 197rcV-00029r-00 for ; Tue, 22 Apr 2003 08:51:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 197rbi-0005U7-01 for gnu-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2003 02:50:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1050993958 5918416 134.91.35.216 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:tv5stY4fR8uEYdkZdwjlbIOu7N0= Original-Xref: shelby.stanford.edu gnu.emacs.help:112169 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8669 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8669 Bill Clementson writes: > I don't want to create a new keybinding for a command, I just want to be > able to indicate that a specific key will "globally" replace the "C-c > C-" portion of already defined major mode commands. Whee. It's easy to replace the "C-c" portion, but there is no easy way to replace the "C-c C-" portion. A modifier is quite closely connected with the corresponding key. Maybe it works to do (global-set-key (kbd "") (kbd "C-c C-x @ c")) The C-x @ c portion is event-apply-control-modifier. But I've never tried this. I wonder if this approach does anything at all. It would, however, be kinda cool. When I use viper mode, I use bindings starting with z that are similar to the standard C-x bindings. Now, many C-x bindings are of the form C-x a through C-x z rather than C-x C-a through C-x C-z. But if I wanted to do the same for C-c bindings (for a major mode), then I'm in trouble -- most C-c bindings are of the form C-c C-a through C-c C-z rather than C-c a through C-c z. -- file-error; Data: (Opening input file no such file or directory ~/.signature)