viewmail-info
[Top][All Lists]
Advanced

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

Re: [VM] VM change in Emacs 24 - leaving mail mode


From: Uday Reddy
Subject: Re: [VM] VM change in Emacs 24 - leaving mail mode
Date: Wed, 16 Dec 2015 11:14:42 +0000

Daniel Barrett writes:

> On December 15, 2015, Uday Reddy wrote:
> >> I've noticed a change in VM's behavior since upgrading to Emacs 24.
> >> When I'm composing an email and I run "save-buffer" to a file, the
> >> buffer enters text-mode instead of staying in mail-mode.
> >That might depend on what file name you use for the file, and what your
> >auto-mode setting is for that file name. 
> 
> Thanks Uday. The filename for saving has no extension (for example, "foo").
> 
> I removed this line from my .emacs file:
> 
>   (setq default-major-mode 'text-mode)
> 
> and the bad behavior stopped. However, this line was present for
> earlier versions of Emacs and didn't cause the mode-switching on
> saves.

I can't speak for Emacs. 

The sensible thing to do is to use a file extension for mail messages, e.g.,
"eml" or "ml", and then define the auto-mode for it to be mail-mode.

Cheers,
Uday



reply via email to

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