From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: Re: heading specific fast keys? Date: Wed, 21 Dec 2016 20:27:44 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJnUQ-00073U-4F for emacs-orgmode@gnu.org; Wed, 21 Dec 2016 15:27:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJnUN-0005mX-1J for emacs-orgmode@gnu.org; Wed, 21 Dec 2016 15:27:54 -0500 Received: from smtp01.stowers.org ([40.141.174.61]:49111) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cJnUM-0005mI-Q0 for emacs-orgmode@gnu.org; Wed, 21 Dec 2016 15:27:50 -0500 In-Reply-To: Content-Language: en-US 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: 'John Kitchin' , "'emacs-orgmode@gnu.org'" > -----Original Message----- > From: Emacs-orgmode [mailto:emacs-orgmode- > bounces+mec=3Dstowers.org@gnu.org] On Behalf Of John Kitchin > Sent: Wednesday, December 21, 2016 2:18 PM > To: emacs-orgmode@gnu.org > Subject: [O] heading specific fast keys? >=20 > I wondered if anyone know a straight forward way to make > heading-specific fast keys in org-mode. >=20 > The idea is if I am on a heading that is a "contact" (which means it has > an EMAIL property), then there would be special hot keys for it, e.g. > "e" would compose a message, "u" might open a URL if it had one, etc... >=20 > Or, on entries captured from elfeed, I could just press "b" to open the > entry in a browser, etc... >=20 > I guess there would need to be some kind of hook that looks up a keymap > or something on these special positions. And maybe a default map for > non-special headings. >=20 > Thoughts? Possible synergy from one of the approaches to [MultipleModes](https://www.= emacswiki.org/emacs?search=3D%22MultipleModes%22) I use polymode in org-mode to good effect within which switches mode with c= ode blocks to be language specific. It might suggest an architecture.... >=20 > -- > 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