all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joost Kremers <joostkremers@fastmail.fm>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs or mutt ?
Date: Mon, 11 Mar 2019 10:50:46 +0100	[thread overview]
Message-ID: <87imwpeo3t.fsf@fastmail.fm> (raw)
In-Reply-To: <20190310220850.GA4077@magellan.machin.org>


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:

<https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html>

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

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



  parent reply	other threads:[~2019-03-11  9:50 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
2019-03-11  9:49         ` tomas
2019-03-13  1:47           ` 황병희
2019-03-13  8:30             ` tomas
2019-03-11  9:50     ` Joost Kremers [this message]
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

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

  git send-email \
    --in-reply-to=87imwpeo3t.fsf@fastmail.fm \
    --to=joostkremers@fastmail.fm \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.