[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11 Dec 2007 16:31:57 GMT
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 ()
(setq paragraph-separate (concat paragraph-separate "\\|.* wrote:$"))
(setq paragraph-start (concat paragraph-start "\\|.* wrote:$"))
(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: \|[ ]*$\|.* wrote:$\|.* wrote:$
How do I set this variable so that it doesn't continuously grow?
- mode-specific paragraph-start,
Tyler Smith <=