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

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

mail-mode paragraph-\(start\)|\(separate\)


From: Tyler Smith
Subject: mail-mode paragraph-\(start\)|\(separate\)
Date: 17 Sep 2007 14:15:55 GMT
User-agent: slrn/0.9.8.1pl1 (Debian)

Hi,

I use mutt for my mail reader, with emacs as my editor. I had some
trouble getting the paragraph filling commands to recognize the header
line, which ends with "Joe wrote:"

The following addition to my .emacs seems to have fixed the problem,
but I wanted to check if this is the best way to achieve my goal:

(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:$")))
(add-hook 'mail-mode-hook 'my-mail-mode-hook)

As I said, this appears to work - meta-q on the first or second lines
no longer puts the first line of the body onto the header line. Is
there a better way to do this?

Thanks,

Tyler


reply via email to

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