help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: contractor resources for emacs extension development


From: Eric Abrahamsen
Subject: Re: contractor resources for emacs extension development
Date: Wed, 23 Oct 2013 09:31:11 +0800
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

Thorsten Jolitz <tjolitz@gmail.com> writes:

> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
>> Thorsten Jolitz <tjolitz@gmail.com> writes:
>>
>>> Did you set the hooks?
>>>
>>> In my .emacs I find e.g.
>>>
>>> ,-------------------------------------------------------------
>>> | (add-hook 'outline-minor-mode-hook 'outshine-hook-function))
>>> | (add-hook 'emacs-lisp-mode-hook 'outline-minor-mode)
>>> | (add-hook 'message-mode-hook 'outline-minor-mode))
>>> `-------------------------------------------------------------
>>>
>>> so whenever outline-minor-mode is activated, the
>>> `outshine-hook-function' is called for setting up things. For
>>> emacs-lisp-mode and message-mode (and others not listed) I then activate
>>> outline-minor-mode by default. 
>>
>> I have them in my configuration file. Is it supposed to work if no
>> headling is present?
>
> Yes, because the trick I used is to temporarily convert this
> line:
>
> ,---------------------------
> | --text follows this line--
> `---------------------------
>
> into a first-level Org-mode heading to make outorg work. 
>
> I assumed that this line is always present in message-mode between the
> header and the body, so there is always at least one heading (created
> in the background by outorg). 
>
> Is that line present in your case? 

A tiny, tiny compatibility trick: the "text follows this
line" line actually comes from the `mail-header-separator' variable. You
might search for the value of that, instead of a hard-coded string, just
in case it's been customized.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]