From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chetan Newsgroups: gmane.emacs.help Subject: Re: Customising fill-paragrah Date: Wed, 11 Feb 2009 13:44:04 -0800 Organization: Noname Inc. Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234392058 9068 80.91.229.12 (11 Feb 2009 22:40:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2009 22:40:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 11 23:42:13 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LXNmL-0000Oe-2t for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Feb 2009 23:42:01 +0100 Original-Received: from localhost ([127.0.0.1]:42833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXNl1-0004Wa-4N for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Feb 2009 17:40:39 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!flph200.ffdc.sbc.com!prodigy.net!flph199.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!flpi143.ffdc.sbc.com.POSTED!8e1d8614!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Emacs Gnus Cancel-Lock: sha1:pa8Xm7Flc29anISk9slH/aF6jf0= Original-Lines: 26 Original-NNTP-Posting-Host: 76.200.183.251 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: flpi143.ffdc.sbc.com 1234388477 ST000 76.200.183.251 (Wed, 11 Feb 2009 16:41:17 EST) Original-NNTP-Posting-Date: Wed, 11 Feb 2009 16:41:17 EST X-UserInfo1: [[PAPDONEJVOBTLZOZKN^_TDFZ\@@FXLM@TDOCQDJ@_@FN\CDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN Original-Xref: news.stanford.edu gnu.emacs.help:166760 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62070 Archived-At: Sebastian Tennant writes: > Hi All, > > I'd like to be able to fill (M-q) a paragraph that begins with a colon > (in column 0) followed by three SPC chars, without it reducing the three > spaces to one, i.e., so that I can type M-q on the example para below > without it having any affect. > > : lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem > ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum > > Also, the indentation of the second line is preserved (once it is set) but > it would be nice to have fill-paragraph automatically indent the second > line by four spaces (in auto-fill-mode) if the first line begins with a > colon. However, the third line is indented as per the second line then, so I guess it is only the second line that is a problem with auto fill. Short of writing elisp code, it might just be easier to define a keyboard macro that replaces the colon with a space and back. > > Any tips/advice/suggestions/pointers much appreciated. > > Sebastian