From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: speed keys for plain lists? Date: Mon, 09 May 2016 12:58:16 -0400 Message-ID: References: <87eg9bck3t.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoVk-0007SK-Bf for emacs-orgmode@gnu.org; Mon, 09 May 2016 12:58:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azoVf-0001D7-8k for emacs-orgmode@gnu.org; Mon, 09 May 2016 12:58:23 -0400 Received: from mail-qg0-x22d.google.com ([2607:f8b0:400d:c04::22d]:36357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoVf-0001D3-4I for emacs-orgmode@gnu.org; Mon, 09 May 2016 12:58:19 -0400 Received: by mail-qg0-x22d.google.com with SMTP id w36so91899221qge.3 for ; Mon, 09 May 2016 09:58:18 -0700 (PDT) In-reply-to: <87eg9bck3t.fsf@mbork.pl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Marcin Borkowski Cc: emacs-orgmode@gnu.org, Bill White , Kaushal Modi I found this approach to context aware key bindings useful: http://endlessparentheses.com/define-context-aware-keys-in-emacs.html Marcin Borkowski writes: > On 2016-05-09, at 16:57, Kaushal Modi wrote: > >> On Mon, May 9, 2016 at 10:47 AM Bill White wrote: >> >>> Now if only one could bind these to more-convenient keys than M-{ and >>> M-} when in a plain list. >> >> >> Now only if emacs allowed changing the default key bindings :P :) >> >> Check out C-h f define-key >> >> (define-key org-mode-map (kbd "KEY") #'COMMAND) > > I guess that OP would like some key to do this only when in plain list. > It's slightly less easy then, and the preferred way (advice/new > function/maybe some hook) might depend on the particular choice of the > keys. > > Best, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu