unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* mode-specific paragraph-start
@ 2007-12-11 16:31 Tyler Smith
  2007-12-11 19:00 ` Peter Dyballa
  0 siblings, 1 reply; 4+ messages in thread
From: Tyler Smith @ 2007-12-11 16:31 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I want Emacs to recognise ".* wrote:$" as the end of a paragraph, so
that I can autofill email messages and not have the body of a message
get mixed in with the intro i.e., "Tyler wrote:".

I use the following hook to do this (among other things):

(defun my-mail-mode-hook ()
  (auto-fill-mode 1)
  (abbrev-mode 1)
  (fortune-to-signature)
  (setq paragraph-separate (concat paragraph-separate "\\|.* wrote:$"))
  (setq paragraph-start (concat paragraph-start "\\|.* wrote:$"))
  (set-fill-column 70))
(add-hook 'mail-mode-hook 'my-mail-mode-hook)

What I now notice is that my regexp gets added every time I send an
email, so that by the end of the day it's several lines long.
Currently it's: \f\|[ 	]*$\|.* wrote:$\|.* wrote:$

How do I set this variable so that it doesn't continuously grow?

Thanks,

Tyler

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-12  0:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 16:31 mode-specific paragraph-start Tyler Smith
2007-12-11 19:00 ` Peter Dyballa
2007-12-12  0:24   ` tyler
2007-12-11 21:01     ` Peter Dyballa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).