From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: execute function when TAB expands a headline Date: Wed, 08 Jun 2011 15:04:04 +0900 Message-ID: <4DEF10D4.4080706@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:44956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUDre-0005LN-5u for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 04:11:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUDrc-0005li-Qv for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 04:11:45 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:33080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUDrc-0005lW-DM for emacs-orgmode@gnu.org; Wed, 08 Jun 2011 04:11:44 -0400 Received: by pxi2 with SMTP id 2so157068pxi.38 for ; Wed, 08 Jun 2011 01:11:42 -0700 (PDT) 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: Org Mode Mailing List Hi there, 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! All the best, Chris