From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: fill-paragraph? Date: Sat, 10 Dec 2011 13:20:33 +0800 Message-ID: <87ty59atpa.fsf@ericabrahamsen.net> References: <4EE22AA9.2080105@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZFMg-00065R-UB for emacs-orgmode@gnu.org; Sat, 10 Dec 2011 00:20:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZFMf-0002lk-UU for emacs-orgmode@gnu.org; Sat, 10 Dec 2011 00:20:50 -0500 Received: from lo.gmane.org ([80.91.229.12]:59728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZFMf-0002le-MQ for emacs-orgmode@gnu.org; Sat, 10 Dec 2011 00:20:49 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RZFMc-0002Zh-Od for emacs-orgmode@gnu.org; Sat, 10 Dec 2011 06:20:46 +0100 Received: from 123.115.190.69 ([123.115.190.69]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Dec 2011 06:20:46 +0100 Received: from eric by 123.115.190.69 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Dec 2011 06:20:46 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Fri, Dec 09 2011, Andrea Crotti wrote: > I lilke the fill-paragraph behaviour that I get in org-mode, and I was > wondering > if I could use it also in other modes. > Using (turn-on-orgstruct) doesn't change the behaviour, and actually > how does it > work? > > I mean M-q in org-mode is still bound to the exact same function, how > come it > behaves differently? Usually you alter the behavior of fill-paragraph by changing the values of `paragraph-start' and `paragraph-separate'. `fill-paragraph' and friends consult these variables to decide what lines to fill together into one big chunk, and what lines to keep as separate lines. Take a look at the docstrings (and if you alter them, keep them buffer-local). Eric > For example I would like to be able to refill comments in python > without messing > up the list structure: > > # TODO > # - see how to handle possible interconnected links between different > projects > # - add some ways to declare more possible branches > # - the name of the protocol is not necessary unless it's HTTP > > Ideas? > > -- GNU Emacs 24.0.92.1 (i686-pc-linux-gnu, GTK+ Version 2.24.6) of 2011-12-07 on pellet Org-mode version 7.7 (release_7.7.626.g4a48)