emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* execute function when TAB expands a headline
@ 2011-06-08  6:04 Christian Wittern
  2011-06-08 11:15 ` Matt Lundin
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Wittern @ 2011-06-08  6:04 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: execute function when TAB expands a headline
  2011-06-08  6:04 execute function when TAB expands a headline Christian Wittern
@ 2011-06-08 11:15 ` Matt Lundin
  2011-06-08 11:57   ` Christian Wittern
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Lundin @ 2011-06-08 11:15 UTC (permalink / raw)
  To: Christian Wittern; +Cc: Org Mode Mailing List

Christian Wittern <cwittern@gmail.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: execute function when TAB expands a headline
  2011-06-08 11:15 ` Matt Lundin
@ 2011-06-08 11:57   ` Christian Wittern
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Wittern @ 2011-06-08 11:57 UTC (permalink / raw)
  To: Matt Lundin; +Cc: Org Mode Mailing List

On 2011-06-08 20:15, Matt Lundin wrote:
> Christian Wittern<cwittern@gmail.com>  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-08 11:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-08  6:04 execute function when TAB expands a headline Christian Wittern
2011-06-08 11:15 ` Matt Lundin
2011-06-08 11:57   ` Christian Wittern

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).