* org-mode turn on auto-fill?
@ 2009-10-22 13:19 Neal Becker
2009-10-22 13:46 ` Andreas Politz
[not found] ` <mailman.9280.1256220359.2239.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Neal Becker @ 2009-10-22 13:19 UTC (permalink / raw)
To: help-gnu-emacs
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?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org-mode turn on auto-fill?
2009-10-22 13:19 org-mode turn on auto-fill? Neal Becker
@ 2009-10-22 13:46 ` Andreas Politz
[not found] ` <mailman.9280.1256220359.2239.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: Andreas Politz @ 2009-10-22 13:46 UTC (permalink / raw)
To: help-gnu-emacs
Neal Becker <ndbecker2@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
-ap
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org-mode turn on auto-fill?
[not found] ` <mailman.9280.1256220359.2239.help-gnu-emacs@gnu.org>
@ 2009-10-23 7:37 ` Francis Moreau
2009-10-24 11:24 ` Andreas Politz
[not found] ` <mailman.9395.1256383496.2239.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Francis Moreau @ 2009-10-23 7:37 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org-mode turn on auto-fill?
2009-10-23 7:37 ` Francis Moreau
@ 2009-10-24 11:24 ` Andreas Politz
[not found] ` <mailman.9395.1256383496.2239.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: Andreas Politz @ 2009-10-24 11:24 UTC (permalink / raw)
To: help-gnu-emacs
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.
Anyway, the point is, that all major-modes called `MODE' define,
arguably by definition, a hook with the name `MODE-hook'.
-ap
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org-mode turn on auto-fill?
[not found] ` <mailman.9395.1256383496.2239.help-gnu-emacs@gnu.org>
@ 2009-10-24 12:14 ` Francis Moreau
2009-10-24 15:52 ` Andreas Politz
0 siblings, 1 reply; 6+ messages in thread
From: Francis Moreau @ 2009-10-24 12:14 UTC (permalink / raw)
To: help-gnu-emacs
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.")
`----
--
Francis
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: org-mode turn on auto-fill?
2009-10-24 12:14 ` Francis Moreau
@ 2009-10-24 15:52 ` Andreas Politz
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Politz @ 2009-10-24 15:52 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-10-24 15:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-22 13:19 org-mode turn on auto-fill? Neal Becker
2009-10-22 13:46 ` Andreas Politz
[not found] ` <mailman.9280.1256220359.2239.help-gnu-emacs@gnu.org>
2009-10-23 7:37 ` Francis Moreau
2009-10-24 11:24 ` Andreas Politz
[not found] ` <mailman.9395.1256383496.2239.help-gnu-emacs@gnu.org>
2009-10-24 12:14 ` Francis Moreau
2009-10-24 15:52 ` Andreas Politz
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).