|
From: | Joost Kremers |
Subject: | Re: emacs or mutt ? |
Date: | Mon, 11 Mar 2019 10:39:33 +0100 |
User-agent: | mu4e 1.1.0; emacs 26.1.91 |
On Mon, Mar 11 2019, tomas@tuxteam.de wrote:
On Sun, Mar 10, 2019 at 11:08:50PM +0100, Philippe Delavalade wrote:> 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.I don't know whether this is a typo, but the "normal" name is ~/.emacs.d(you wrote ~/.emac.d).
It is a typo, indeed.
Nevertheless...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 Iwill try it later.if you have an ~/.emacs, this will take precedence, I think.
Yes, AFAIK it will. ~/.emacs is the older one of the two, and when ~/.emacs.d/init.el was introduced, the devs didn't want to upset people's configs, so ~/.emacs still takes precedence.
-- Joost Kremers Life has its moments
[Prev in Thread] | Current Thread | [Next in Thread] |