emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* fill in *Org Note* buffer
@ 2007-06-30  7:43 Maxim Loginov
  2007-07-02  5:33 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Maxim Loginov @ 2007-06-30  7:43 UTC (permalink / raw)
  To: emacs-orgmode

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)?

thanks
Maxim

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: fill in *Org Note* buffer
  2007-06-30  7:43 fill in *Org Note* buffer Maxim Loginov
@ 2007-07-02  5:33 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2007-07-02  5:33 UTC (permalink / raw)
  To: Maxim Loginov; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-02  5:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-30  7:43 fill in *Org Note* buffer Maxim Loginov
2007-07-02  5:33 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).