From: Tyler Smith <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: mode-specific paragraph-start
Date: 11 Dec 2007 16:31:57 GMT [thread overview]
Message-ID: <slrnfltsto.fru.tyler.smith@blackbart.sedgenet> (raw)
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
next reply other threads:[~2007-12-11 16:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-11 16:31 Tyler Smith [this message]
2007-12-11 19:00 ` mode-specific paragraph-start Peter Dyballa
2007-12-12 0:24 ` tyler
2007-12-11 21:01 ` Peter Dyballa
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnfltsto.fru.tyler.smith@blackbart.sedgenet \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.