[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-mode turn on auto-fill?
From: |
Andreas Politz |
Subject: |
Re: org-mode turn on auto-fill? |
Date: |
Sat, 24 Oct 2009 17:52:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Francis Moreau <francis.moro@gmail.com> writes:
> Andreas Politz <politza@fh-trier.de> writes:
>
>> Francis Moreau <francis.moro@gmail.com> writes:
>>
>>> On Oct 22, 3:46 pm, Andreas Politz <poli...@fh-trier.de> wrote:
>>>> Neal Becker <ndbeck...@gmail.com> writes:
>>>> > I want auto-fill turned on in org mode. For now I did:
>>>> > (add-hook 'text-mode-hook 'turn-on-auto-fill)
>>>>
>>>> > Is there a more direct setting for org mode?
>>>>
>>>> M-x load-library RET org RET
>>>> M-x apropos-variable RET org hook RET
>>>>
>>>
>>> Funny, it shows a couple of org hooks but not the interesting one :
>>> org-mode-hook
>>
>> Yes, org-mode does not defvar this hook, it just uses it. So my polite
>> RTFM did miss somehow.
>>
>
> It looks like it does:
>
> ,----
> | (defvar org-mode-hook nil
> | "Mode hook for Org-mode, run after the mode was turned on.")
> `----
Maybe it depends on the version. I know that some modes don't define
this hook, e.g. doc-view 22.2.
-ap