* mail-mode paragraph-\(start\)|\(separate\)
@ 2007-09-17 14:15 Tyler Smith
0 siblings, 0 replies; only message in thread
From: Tyler Smith @ 2007-09-17 14:15 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-17 14:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-17 14:15 mail-mode paragraph-\(start\)|\(separate\) Tyler Smith
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).