From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Overriding emacs key bindings Date: Tue, 17 May 2016 02:55:44 +0100 Message-ID: <87lh39h2hr.fsf@robertthorpeconsulting.com> References: <86k2iteg4e.fsf@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1463450180 1728 80.91.229.3 (17 May 2016 01:56:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 May 2016 01:56:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg , xiongtk Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 17 03:56:09 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b2UEy-0007Eq-K6 for geh-help-gnu-emacs@m.gmane.org; Tue, 17 May 2016 03:56:08 +0200 Original-Received: from localhost ([::1]:48042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2UEx-0002pP-FZ for geh-help-gnu-emacs@m.gmane.org; Mon, 16 May 2016 21:56:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2UEn-0002l0-7x for help-gnu-emacs@gnu.org; Mon, 16 May 2016 21:55:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2UEj-0000Fe-06 for help-gnu-emacs@gnu.org; Mon, 16 May 2016 21:55:56 -0400 Original-Received: from outbound-smtp11.blacknight.com ([46.22.139.16]:50250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2UEi-0000EG-P4 for help-gnu-emacs@gnu.org; Mon, 16 May 2016 21:55:52 -0400 Original-Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp11.blacknight.com (Postfix) with ESMTPS id B876F1C123A for ; Tue, 17 May 2016 02:55:45 +0100 (IST) Original-Received: (qmail 858 invoked from network); 17 May 2016 01:55:45 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.76.93.247]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 17 May 2016 01:55:45 -0000 In-Reply-To: <86k2iteg4e.fsf@student.uu.se> (message from Emanuel Berg on Tue, 17 May 2016 01:29:37 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 46.22.139.16 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110005 Archived-At: Emanuel Berg writes: > xiongtk writes: >> I kind of run out of keys on my keyboard. >> Since this function is rarely used(I use >> English for 99% of the time), I think the >> function keys is fine. ... > > If you really *do* run out of shortcuts, get > a new prefix key, e.g. C-o which is short and > close - check your hands when at asdf jkl; and > note the required movement to strike C-o! > > Now even a new world of shortcuts opens. E.g., Personally, I'm very used to C-o being open-line. That said, I agree with Emmanuel in general about this. There are a lot of options that people don't consider. Emacs reserves all keybindings of the type C-c C- for modes. However, if the second key doesn't begin with ctrl then the user can use it. The entire C-c keymap is reserved for the user. The something can be any key that's not prefixed by ctrl or meta. Any key works, even the numbers and symbols on the keyboard. Capitals and small letters aren't treated the same, so there's a huge space there for new keybindings. Then there are rarely used prefix keys, like the key for marking text, you can attach stuff to that one. BR, Robert Thorpe