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



_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to