From: Tyler Smith <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: mail-mode paragraph-\(start\)|\(separate\)
Date: 17 Sep 2007 14:15:55 GMT [thread overview]
Message-ID: <slrnfet315.l97.tyler.smith@blackbart.mynetwork> (raw)
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 other threads:[~2007-09-17 14:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnfet315.l97.tyler.smith@blackbart.mynetwork \
--to=tyler.smith@mail.mcgill.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).