From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Line folding Date: Tue, 08 Sep 2009 11:22:06 +0200 Message-ID: <87ocpl94g1.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mkwu6-0007WX-HH for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 05:22:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mkwu1-0007Uo-Ij for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 05:22:21 -0400 Received: from [199.232.76.173] (port=60488 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mkwu1-0007Ul-9L for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 05:22:17 -0400 Received: from mail.gmx.net ([213.165.64.20]:41237) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Mkwu0-0001RQ-Mc for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 05:22:17 -0400 In-Reply-To: (Ananth Somayaji's message of "Tue, 8 Sep 2009 13:27:41 +0530") 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: "Somayaji, Ananth" Cc: "emacs-orgmode@gnu.org" "Somayaji, Ananth" writes: > Hi, > > Any pointers on how to enable line-folding like the one done in filladapt-mode > in org-mode ? I tried doing it but the syntax highlighting is all gone bad. > > Best Regards, Ananth Hi Ananth, not sure, what you mean by `line-folding'. But if you want to have automatic line breaks on, just turn on auto-fill-mode for your Org-files: (add-hook 'org-mode-hook 'turn-on-auto-fill) I simply have (add-hook 'text-mode-hook 'turn-on-auto-fill) to turn on auto-fill-mode in any text file. text-mode-hook is called from outline-mode. Not sure if this helps. I use fill-adapt for very special cases like comments in C/C++ file and so on. Best regards, Sebastian