unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joost Kremers <joostkremers@fastmail.fm>
To: help-gnu-emacs@gnu.org
Cc: Philippe Delavalade <philippe.delavalade@orange.fr>
Subject: Re: emacs or mutt ?
Date: Mon, 11 Mar 2019 10:39:33 +0100	[thread overview]
Message-ID: <87k1h5eomi.fsf@fastmail.fm> (raw)
In-Reply-To: <20190311075343.GA21526@tuxteam.de>


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 I
>> will 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



  reply	other threads:[~2019-03-11  9:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-10 10:23 emacs or mutt ? Philippe Delavalade
2019-03-10 16:16 ` Joost Kremers
2019-03-10 22:08   ` Philippe Delavalade
2019-03-11  7:53     ` tomas
2019-03-11  9:39       ` Joost Kremers [this message]
2019-03-11  9:49         ` tomas
2019-03-13  1:47           ` 황병희
2019-03-13  8:30             ` tomas
2019-03-11  9:50     ` Joost Kremers
2019-03-13  6:42 ` Bob Proulx

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k1h5eomi.fsf@fastmail.fm \
    --to=joostkremers@fastmail.fm \
    --cc=help-gnu-emacs@gnu.org \
    --cc=philippe.delavalade@orange.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).