From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: Re: execute function when TAB expands a headline Date: Wed, 08 Jun 2011 20:57:19 +0900 Message-ID: <4DEF639F.5010408@gmail.com> References: <4DEF10D4.4080706@gmail.com> <87fwnktvzm.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUHO2-0008RP-TL for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 07:57:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUHO1-0002n1-5Y for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 07:57:26 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:62333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUHO0-0002mW-L7 for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 07:57:24 -0400 Received: by pzk4 with SMTP id 4so253471pzk.0 for ; Wed, 08 Jun 2011 04:57:23 -0700 (PDT) In-Reply-To: <87fwnktvzm.fsf@fastmail.fm> 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: Matt Lundin Cc: Org Mode Mailing List On 2011-06-08 20:15, Matt Lundin wrote: > Christian Wittern writes: > >> 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. > Great! That indeed sounds like what I need. I'll give it a try. All the best, Chris