help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customising fill-paragrah


From: Chetan
Subject: Re: Customising fill-paragrah
Date: Wed, 11 Feb 2009 13:44:04 -0800
User-agent: Emacs Gnus

Sebastian Tennant <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]