From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: execute function when TAB expands a headline Date: Wed, 08 Jun 2011 07:15:25 -0400 Message-ID: <87fwnktvzm.fsf@fastmail.fm> References: <4DEF10D4.4080706@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUGjT-0008Pg-3V for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 07:15:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUGjR-0003Ok-AN for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 07:15:31 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:44968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUGjQ-0003OB-HD for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 07:15:28 -0400 In-Reply-To: <4DEF10D4.4080706@gmail.com> (Christian Wittern's message of "Wed, 08 Jun 2011 15:04:04 +0900") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christian Wittern Cc: Org Mode Mailing List Christian Wittern writes: > I am (also!) using org-mode for displaying dictionary data, with the > headword part of the headline. When I press on TAB, the entry expands and I > see the explanation and some sample sentences. Now, to make it easier (for > my eyes) to parse the examples, I would like to highlight the headword, as > it appears in the examples. I believe hi-lock mode etc. could do the trick, > but I am stuck at how to hook into the TAB execution, so that I can call my > code. Any hints very much appreciated! I believe you could use org-cycle-hook. Best, Matt