From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Overriding emacs key bindings Date: Tue, 17 May 2016 06:15:20 +0200 Message-ID: <86k2itfhgn.fsf@student.uu.se> References: <86k2iteg4e.fsf@student.uu.se> <87lh39h2hr.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1463458560 21863 80.91.229.3 (17 May 2016 04:16:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 May 2016 04:16:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 17 06:15:52 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 1b2WQB-0005Gk-OL for geh-help-gnu-emacs@m.gmane.org; Tue, 17 May 2016 06:15:51 +0200 Original-Received: from localhost ([::1]:48335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2WQ7-0007Kn-Pc for geh-help-gnu-emacs@m.gmane.org; Tue, 17 May 2016 00:15:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2WPt-0007HX-DM for help-gnu-emacs@gnu.org; Tue, 17 May 2016 00:15:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2WPp-0001Kj-P2 for help-gnu-emacs@gnu.org; Tue, 17 May 2016 00:15:32 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:46936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2WPp-0001Kb-IR for help-gnu-emacs@gnu.org; Tue, 17 May 2016 00:15:29 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b2WPm-00059O-4q for help-gnu-emacs@gnu.org; Tue, 17 May 2016 06:15:26 +0200 Original-Received: from c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se ([85.230.225.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 May 2016 06:15:26 +0200 Original-Received: from embe8573 by c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 May 2016 06:15:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 56 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:mf8zgYlpTSLQD7UgtEfa0Z3Q0Rc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:110014 Archived-At: Kaushal Modi writes: > While I do agree that a wide range of user > bindings are available with C-c prefix, > I would not recommend blindly using all > available "C-c SYMBOL" bindings without > checking of org-mode already uses them > especially if you use org-mode a lot. I now > first check if a new binding conflicts with > org-mode before creating a new personal > C-c binding. Interesting - in other words, it is _org-mode_ that decides what keybindings you use... Another idea, if you look for some intuitive degree of consistency, is to identify "key" concepts. For example, one such concept is "to execute". In this message-mode, C-c C-c is to send the message. I'd say that is to execute, in the setting of typing a mail! Likewise a piece of code - to execute is either to launch the program, or to compile it. Perhaps it is launch if it is a shell script, but compile if it is LaTeX source! A global DWIM function with branching can do this, or each mode can have its own function that locally is associated with C-c C-c. In Dired (and a Gnus summary for that matter), there are a bunch of things you can mark the files (posts) so that it will happen when you - execute. And in Emacs-w3m, you can fill forms with data and submit with the same key! Another axis of intuitiveness is the modes when there is no typing. Here, the whole keyboard can be used to fire of defuns! But even cooler if this mirrors, only simplifies, the standard keystrokes. Say you have scroll up one line with M-i, and ditto down with M-j. You have this all over Emacs. [1] But in w3m, which doesn't require typing when you "browse" (yuk, that word!) - here, make it super-comfortable by keeping the M-i and M-j, but supplementing with i and j, to do the same thing! So there is no need to fear getting in the way of what is already there. Instead think what you would like to do. [1] http://user.it.uu.se/~embe8573/conf/emacs-init/scroll.el -- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 32 Blogomatic articles -