From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tyler Smith Newsgroups: gmane.emacs.help Subject: mail-mode paragraph-\(start\)|\(separate\) Date: 17 Sep 2007 14:15:55 GMT Organization: Sedgeboy Inc. Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1190040225 30315 80.91.229.12 (17 Sep 2007 14:43:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2007 14:43:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 17 16:43:43 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IXHp1-0005O0-5V for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Sep 2007 16:43:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXHoW-00041x-AY for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Sep 2007 10:43:04 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!nx02.iad01.newshosting.com!newshosting.com!post02.iad01!post01.iad01!news.aliant.net!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Lines: 24 Original-NNTP-Posting-Host: 142.177.90.10 Original-X-Complaints-To: abuse@aliant.net Original-Xref: shelby.stanford.edu gnu.emacs.help:152131 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47641 Archived-At: 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