emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] fill in *Org Note* buffer


From: Carsten Dominik
Subject: Re: [Orgmode] fill in *Org Note* buffer
Date: Mon, 2 Jul 2007 07:33:37 +0200

On Jun 30, 2007, at 9:43, Maxim Loginov wrote:

hi again :-)

how to set auto-fill-mode with fill-column or fill-paragraph-function
locally for the *Org Note* buffer in a proper way? this buffer appears
when the state for a task is changed (let's say TODO-DONE) and allow
to make notes (really useful!). this note can be quite long and it
will look better on the page if the text is filled with 45 column. so
how to do it automatically or with M-q (fill-paragraph)?

The Note buffer is in org-mode, it therefore runs org-mode-hook,
outline-mode-hook, and text-mode-hook.  You can do the following
in any of the three hooks:

(add-hook 'org-mode-hook
    (lambda ()
      (when (equal (buffer-name) "*Org Note*")
        (turn-on-auto-fill)
        (setq fill-column 45))))


- Carsten





reply via email to

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