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

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

Re: Configuring fill-paragraph not to mash the subversion delimiter?


From: Sam Peterson
Subject: Re: Configuring fill-paragraph not to mash the subversion delimiter?
Date: 06 Apr 2007 12:40:17 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/22.0.50

Adam Funk <a24061@yahoo.com> on Fri, 16 Mar 2007 21:21:48 +0000 didst step
forth and proclaim thus:

> Is there any easy way to set something in my ~/.emacs file so that
> when I'm editing subversion commit messages and I use M-q to tidy up a
> few lines of text, the fill-paragraph command will treat the standard
> line 
> 
> --This line, and those below, will be ignored--
> 
> as not being part of the paragraph, even if there is no blank line
> before it?

Methinks customizing paragraph-separate may prove fruitful.  Something like:

(setq paragraph-separate (concat "--.*\?--\\|" paragraph-separate))

I don't know what *-hook variable is run for subversion commit messages.  If
you find the right hook, just place the above code in a lambda or defun for it.

-- 
Sam Peterson
skpeterson At nospam ucdavis.edu
"if programmers were paid to remove code instead of adding it,
software would be much better" -- unknown


reply via email to

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