[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs or mutt ?
From: |
Bob Proulx |
Subject: |
Re: emacs or mutt ? |
Date: |
Wed, 13 Mar 2019 00:42:49 -0600 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
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 am using mutt and emacs to read and reply to this message.
> I encounter a problem with emacs and mutt under gnu/linux.
What is the GNU/Linux OS distribution?
> 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)'"
In my muttrc file:
set editor="emacs"
In my ~/.emacs file:
(add-hook 'text-mode-hook
(lambda ()
(abbrev-mode 1)
(auto-fill-mode 1)))
post-mail-message is set to
"\\(mutt-[a-zA-Z0-9-.]+-[0-9]+-[0-9]+\\(-[a-fA-F0-9]+\\)?\\|mutt[a-zA-Z0-9._-]\\{6\\}\\)\\'"
> 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.
I am using emacs 26.1 and mutt 1.10.1.
> 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 :-(.
>
> I tried in .muttrc
> set editor=emacs --debug-init --eval '(text-mode)'"
> but nothing wrong was detected.
>
> Can someone give me an hint to resore the right comportment?
I think either post-mail-message should be set or perhaps use
something like this to set text-mode for mutt buffers.
(setq auto-mode-alist ; Note: RE matches full pathname, so
(append ; '^' matches / in /dir/dir/filename
'(
("^\\(/var\\)?/tmp/mutt" . text-mode)
)
auto-mode-alist))
By the way... I also set this in mutt so that buffers are stored in
/var/tmp instead of /tmp since /tmp is purged on a reboot and an
accidental system crash would not preserve the draft. But putting it
in /var/tmp will preserve the draft across a system crash and reboot.
set tmpdir="/var/tmp"
Bob
- emacs or mutt ?, Philippe Delavalade, 2019/03/10
- Re: emacs or mutt ?, Joost Kremers, 2019/03/10
- Re: emacs or mutt ?, Philippe Delavalade, 2019/03/10
- Re: emacs or mutt ?, tomas, 2019/03/11
- Re: emacs or mutt ?, Joost Kremers, 2019/03/11
- Re: emacs or mutt ?, tomas, 2019/03/11
- Re: emacs or mutt ?, 황병희, 2019/03/12
- Re: emacs or mutt ?, tomas, 2019/03/13
- Re: emacs or mutt ?, Joost Kremers, 2019/03/11
Re: emacs or mutt ?,
Bob Proulx <=