GNU bug report logs - #16591
-*-mode1-*- -*mode2-*-

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Thu, 30 Jan 2014 01:22:02 UTC

Severity: wishlist

Tags: notabug, wontfix

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #27 received at 16591 <at> debbugs.gnu.org (full text, mbox):

From: Rüdiger Sonderfeld <ruediger <at> c-plusplus.de>
To: bug-gnu-emacs <at> gnu.org
Cc: 16591 <at> debbugs.gnu.org, Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
Date: Thu, 30 Jan 2014 17:38:28 +0100
On Thursday 30 January 2014 21:56:20 Dan Jacobson wrote:
> On Thu, Jan 30, 2014 at 02:41:13PM +0100, Rüdiger Sonderfeld wrote:
> > -*- mode:text; mode:flyspell; -*-
> > 
> > But maybe you want to load `flyspell' in the `text-mode-hook' anyway.
> 
> OK people. Kindly document all that. Thanks!

It's what the documentation already says

> You can also use file-local variables to specify buffer-local minor
> modes, by using ‘eval’ specifications.  For example, this first nonblank
> 
> line puts the buffer in Lisp mode and enables Auto-Fill mode:
>      ; -*- mode: Lisp; eval: (auto-fill-mode 1); -*-
> 
> Note, however, that it is usually inappropriate to enable minor modes
> this way, since most minor modes represent individual user preferences.
> If you personally want to use a minor mode for a particular file type,
> it is better to enable the minor mode via a major mode hook (*note Major
> Modes::).





This bug report was last modified 11 years and 118 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.