From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Control-C conundrum Date: Wed, 3 Jun 2015 16:17:36 -0800 Organization: AkWebsoft Message-ID: <20150604001736.GA1917@mail.akwebsoft.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1433377093 9573 80.91.229.3 (4 Jun 2015 00:18:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jun 2015 00:18:13 +0000 (UTC) To: Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 04 02:17:56 2015 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 1Z0Ir4-0002rX-Ua for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jun 2015 02:17:55 +0200 Original-Received: from localhost ([::1]:39695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Ir4-0001DT-5f for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Jun 2015 20:17:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Iqu-0001CE-Ev for Help-gnu-emacs@gnu.org; Wed, 03 Jun 2015 20:17:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0Iqr-00056o-A1 for Help-gnu-emacs@gnu.org; Wed, 03 Jun 2015 20:17:44 -0400 Original-Received: from tjohnson.mtaonline.net ([64.4.232.191]:49259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Iqr-00056K-1z for Help-gnu-emacs@gnu.org; Wed, 03 Jun 2015 20:17:41 -0400 Original-Received: by tj49.com (Postfix, from userid 501) id E1D30630E7B2; Wed, 3 Jun 2015 16:17:36 -0800 (AKDT) Mail-Followup-To: Emacs Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-detected-operating-system: by eggs.gnu.org: Mac OS X 10.x X-Received-From: 64.4.232.191 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104739 Archived-At: I've done extensive keybinding based on the recommendations here: https://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html What follows is an example of my strategy ;; Leading prefix for all bindings (defvar tj-leader "C-c " "First keystroke for all keymap prefixes") ;; One example of a prefix command defvar tj-go-map (make-sparse-keymap) "Navigation") (define-prefix-command 'tj-go-map) (global-set-key (kbd (concat tj-leader "g")) 'tj-go-map) Any number of bindings, all beginning with C-c follow from that scheme. This means that I can change bindings so that they begin with something other than C-c with one code change: the first 'defvar. Here's my problem : I have severe arthritis in my thumbs. When I use fingers in my left hand, bending down to reach the "c" key, I will shortly experience a lot of pain in the base of my left thumb. I can easily switch to C-l or C-o as the first keystroke for all prefix definitions just by redefining 'tj-leader. I'm aware that major or minor modes may use C-l or C-o, but I don't have any of the thumb pain when I use either C-l or C-o. One work-around that I have been considering is add-hook'ing an alternative binding (say, in place of C-o => C-o C-o) if I use a mode that remaps C-o. I'd welcome any comments or suggestions, :) including thumb surgery. thanks -- Tim http://www.akwebsoft.com, http://www.tj49.com