From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tyler Newsgroups: gmane.emacs.help Subject: Re: Auto enable text-mode when editing email (from mutt) Date: Thu, 19 Feb 2009 17:14:08 -0400 Message-ID: <8763j6gme7.fsf@blackbart.sedgenet> References: <22109337.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235078108 20038 80.91.229.12 (19 Feb 2009 21:15:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2009 21:15:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 19 22:16:24 2009 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 1LaGFq-0006BA-Ts for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Feb 2009 22:16:23 +0100 Original-Received: from localhost ([127.0.0.1]:35472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaGEW-0000Z1-IF for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Feb 2009 16:15:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaGEC-0000Xy-JI for help-gnu-emacs@gnu.org; Thu, 19 Feb 2009 16:14:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaGE9-0000X1-8L for help-gnu-emacs@gnu.org; Thu, 19 Feb 2009 16:14:38 -0500 Original-Received: from [199.232.76.173] (port=53732 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaGE9-0000Ww-51 for help-gnu-emacs@gnu.org; Thu, 19 Feb 2009 16:14:37 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:36091 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LaGE8-0002YU-Pv for help-gnu-emacs@gnu.org; Thu, 19 Feb 2009 16:14:37 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LaGE4-0003vp-Dn for help-gnu-emacs@gnu.org; Thu, 19 Feb 2009 21:14:32 +0000 Original-Received: from 140.184.131.32 ([140.184.131.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Feb 2009 21:14:32 +0000 Original-Received: from tyler.smith by 140.184.131.32 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Feb 2009 21:14:32 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 140.184.131.32 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:tMxKyygbbb6v76M44GP1koGj4rA= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:62208 Archived-At: TheLonelyStar writes: > I use emacs to edit my emails (from mutt). It is started with this line: > /usr/bin/emacs -nw -q > > Now, editing emails in text-mode instead of fundamental mode would be much > cooler! > How can I make emacs got to text-mode when invoked from mutt? > I haven't used mutt in a while, but I still have this in my .emacs: (add-to-list 'auto-mode-alist '("/mutt" . mail-mode)) I believe that that will put all buffers visiting mutt files into mail-mode automatically. You could switch that to text-mode, but you might find that mail-mode covers what you want already. Cheers, Tyler -- Friends don't let friends send Word documents http://www.nothingisreal.com/dfki/no-word