[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs or mutt ?

From: Joost Kremers
Subject: Re: emacs or mutt ?
Date: Mon, 11 Mar 2019 10:50:46 +0100
User-agent: mu4e 1.1.0; emacs 26.1.91

On Sun, Mar 10 2019, Philippe Delavalade wrote:
Le dimanche 10 mars à 17:16, Joost Kremers a écrit :
   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 :-(

That's probably because emacsclient requires a running Emacs to attach to. You'd need to read about using Emacs as a server in the manual:


The best way to do this, I think, is to use `auto-mode-alist`. Put this in

(add-to-list 'auto-mode-alist '("mutt-[a-z0-9]+-[0-9]+-[0-9]+.*\\'" .

I had no file ~/.emac.d/init.el

Like tomas already indicated, that's a typo, it should be ~/.emacs.d/init.el. Furthermore, if you already have a ~/.emacs file, ~/.emacs.d/init.el isn't going to be read anyway.

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.

It's Gnu's major mode for messages. In combination with mutt, it's mainly useful for fontification. Some of the keybindings won't work, because they expect Gnus to be running.

Joost Kremers
Life has its moments

reply via email to

[Prev in Thread] Current Thread [Next in Thread]