From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uwe Scholz Newsgroups: gmane.emacs.help Subject: Re: Auto enable text-mode when editing email (from mutt) Date: 21 Feb 2009 09:42:27 GMT Organization: Uni Leipzig Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1235212856 23977 80.91.229.12 (21 Feb 2009 10:40:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Feb 2009 10:40:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 21 11:42:12 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 1LapJA-0001Nu-V4 for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Feb 2009 11:42:09 +0100 Original-Received: from localhost ([127.0.0.1]:59480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LapHq-0003CJ-DZ for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Feb 2009 05:40:46 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!feeder.erje.net!news-2.dfn.de!news1.uni-leipzig.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: a192235.studnetz.uni-leipzig.de Original-X-Trace: news1.uni-leipzig.de 1235209347 25738 139.18.192.235 (21 Feb 2009 09:42:27 GMT) Original-X-Complaints-To: usenet@news1.uni-leipzig.de Original-NNTP-Posting-Date: 21 Feb 2009 09:42:27 GMT User-Agent: Pan/0.133 (House of Butterflies) Original-Xref: news.stanford.edu gnu.emacs.help:166928 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:62236 Archived-At: On Thu, 19 Feb 2009 12:45:47 -0800, TheLonelyStar wrote: > Hi, > > 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? > > Thanks! > Nathan Hello, I prefer 'post-mode' for editing outgoing mail with emacs started from mutt. You can get it from here: http://sourceforge.net/projects/post-mode/ To use it, you have to put the el-file in a folder you want, lets say ".emacs.stuff" and insert the following lines to your .emacs file: (setq load-path (cons "~/.emacs.stuff" load-path)) (load "post") This starts the post-mode every time, you start emacs. For running emacs using mutt I wrote an extra config-file with the postmode-entry and insert the line set editor='emacs -nw -l ~/.emacs.mail' in .muttrc. Ciao, Uwe