From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: fill in *Org Note* buffer Date: Mon, 2 Jul 2007 07:33:37 +0200 Message-ID: References: <87y7i1sx9s.fsf@mail.ru> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5EXg-0000FH-T9 for emacs-orgmode@gnu.org; Mon, 02 Jul 2007 01:33:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5EXg-0000EC-7G for emacs-orgmode@gnu.org; Mon, 02 Jul 2007 01:33:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5EXf-0000Do-Vy for emacs-orgmode@gnu.org; Mon, 02 Jul 2007 01:33:44 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5EXf-0003E0-2L for emacs-orgmode@gnu.org; Mon, 02 Jul 2007 01:33:43 -0400 In-Reply-To: <87y7i1sx9s.fsf@mail.ru> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Maxim Loginov Cc: emacs-orgmode@gnu.org 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