From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Philippe Delavalade Newsgroups: gmane.emacs.help Subject: Re: emacs or =?utf-8?B?bXV0dMKgPw==?= Date: Sun, 10 Mar 2019 23:08:50 +0100 Message-ID: <20190310220850.GA4077@magellan.machin.org> References: <20190310102332.GA2029@magellan.machin.org> <87bm2iu2kv.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="206109"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.3 (2019-02-01) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 10 23:13:20 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h36h5-000rW4-Bd for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2019 23:13:19 +0100 Original-Received: from localhost ([127.0.0.1]:51780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h36h4-00064s-3P for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Mar 2019 18:13:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h36gg-0005uy-3K for help-gnu-emacs@gnu.org; Sun, 10 Mar 2019 18:12:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h36co-00045a-JK for help-gnu-emacs@gnu.org; Sun, 10 Mar 2019 18:08:55 -0400 Original-Received: from smtp11.smtpout.orange.fr ([80.12.242.133]:44065 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h36co-00043Y-8T for help-gnu-emacs@gnu.org; Sun, 10 Mar 2019 18:08:54 -0400 Original-Received: from localhost ([86.252.42.157]) by mwinf5d22 with ME id mN8q1z00C3PTbZi03N8qGQ; Sun, 10 Mar 2019 23:08:50 +0100 X-ME-Helo: localhost X-ME-Date: Sun, 10 Mar 2019 23:08:50 +0100 X-ME-IP: 86.252.42.157 Content-Disposition: inline In-Reply-To: <87bm2iu2kv.fsf@fastmail.fm> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.133 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:119607 Archived-At: Hi Jost. Many thanks for your help. Le dimanche 10 mars à 17:16, Joost Kremers a écrit : > Hi Philippe, > > On Sun, Mar 10 2019, Philippe Delavalade wrote: > > I don't know if it is the right place for this question because it truns > > around emacs but also around mutt. > > > > I encounter a problem with emacs and mutt under gnu/linux. > > > > In .emacs I have the line : > > (add-hook 'text-mode-hook 'turn-on-auto-fill) > > > > In .muttrc I have this line : > > set editor="emacs --eval '(text-mode)'" > > That looks a bit suspicious to me. I think it's better to put the > configuration for the major mode in Emacs' init file. This is what I used to > do when I used mutt. First, in .muttrc: > > set editor = emacsclient > > (I used emacsclient, which I preferred, but it should work with "set editor > = emacs" as well). I tried but it didn't solved the problem. mutt refused to open the buffer and quit :-( > > Formerly, when writing a message with muut, the buffer was in text-mode > > and fill-mode was active. > > > > Today, with emacs 26.1 instead of 25.3 and mutt 1.11.3 instead of > > 1.10.1, this is no more the case. > > > > When I write a message in mutt, emacs is called but the buffer is in > > fundamental mode and I must type M-x auto-fill-mode :-(. > > The best way to do this, I think, is to use `auto-mode-alist`. Put this in > ~/.emacs.d/init.el: > > (add-to-list 'auto-mode-alist '("mutt-[a-z0-9]+-[0-9]+-[0-9]+.*\\'" . > message-mode)) I had no file ~/.emac.d/init.el So I created it and wrote your line but it produces no effect. Finally I put the line in .emacs and now I have what I want. I replaced message-mode with text-mode because I don't know at all this mode but I will try it later. Thanks a lot. -- Ph. Delavalade