* bug#16591: -*-mode1-*- -*mode2-*-
@ 2014-01-30 0:52 ` jidanni
2014-01-30 2:43 ` Glenn Morris
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: jidanni @ 2014-01-30 0:52 UTC (permalink / raw)
To: 16591
On (info "(emacs) Choosing Modes")
please mention the proper way for users to write
-*-mode1-*- -*mode2-*-
if they want both.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#16591: -*-mode1-*- -*mode2-*-
2014-01-30 0:52 ` bug#16591: -*-mode1-*- -*mode2-*- jidanni
@ 2014-01-30 2:43 ` Glenn Morris
2014-01-30 10:29 ` bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-) Dan Jacobson
2014-01-30 23:46 ` Dan Jacobson
2 siblings, 0 replies; 8+ messages in thread
From: Glenn Morris @ 2014-01-30 2:43 UTC (permalink / raw)
To: 16591-done
It is not documented in the Emacs manual because stock Emacs does not
provide a method to allow two major modes. I believe some add-ons do;
it's up to them to document it.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
2014-01-30 0:52 ` bug#16591: -*-mode1-*- -*mode2-*- jidanni
2014-01-30 2:43 ` Glenn Morris
@ 2014-01-30 10:29 ` Dan Jacobson
2014-01-30 13:41 ` Rüdiger Sonderfeld
2014-01-30 23:46 ` Dan Jacobson
2 siblings, 1 reply; 8+ messages in thread
From: Dan Jacobson @ 2014-01-30 10:29 UTC (permalink / raw)
To: 16591
>>>>> "GbTS" == GNU bug Tracking System <help-debbugs@gnu.org> writes:
GbTS> It is not documented in the Emacs manual because stock Emacs does not
GbTS> provide a method to allow two major modes. I believe some add-ons do;
GbTS> it's up to them to document it.
OK but please mention how to get -*-text-*- and -*-flyspell-*- working
on the same line.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
2014-01-30 10:29 ` bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-) Dan Jacobson
@ 2014-01-30 13:41 ` Rüdiger Sonderfeld
2014-01-30 13:56 ` Dan Jacobson
0 siblings, 1 reply; 8+ messages in thread
From: Rüdiger Sonderfeld @ 2014-01-30 13:41 UTC (permalink / raw)
To: 16591; +Cc: jidanni
On Thursday 30 January 2014 18:29:25 Dan Jacobson wrote:
> >>>>> "GbTS" == GNU bug Tracking System <help-debbugs@gnu.org> writes:
> GbTS> It is not documented in the Emacs manual because stock Emacs does not
> GbTS> provide a method to allow two major modes. I believe some add-ons do;
> GbTS> it's up to them to document it.
>
> OK but please mention how to get -*-text-*- and -*-flyspell-*- working
> on the same line.
-*- mode:text; mode:flyspell; -*-
But maybe you want to load `flyspell' in the `text-mode-hook' anyway.
Regards,
Rüdiger
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
2014-01-30 13:41 ` Rüdiger Sonderfeld
@ 2014-01-30 13:56 ` Dan Jacobson
2014-01-30 16:38 ` Rüdiger Sonderfeld
0 siblings, 1 reply; 8+ messages in thread
From: Dan Jacobson @ 2014-01-30 13:56 UTC (permalink / raw)
To: Rüdiger Sonderfeld; +Cc: 16591
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!
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
2014-01-30 13:56 ` Dan Jacobson
@ 2014-01-30 16:38 ` Rüdiger Sonderfeld
2014-01-30 17:03 ` Glenn Morris
0 siblings, 1 reply; 8+ messages in thread
From: Rüdiger Sonderfeld @ 2014-01-30 16:38 UTC (permalink / raw)
To: 16591; +Cc: jidanni
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::).
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
2014-01-30 16:38 ` Rüdiger Sonderfeld
@ 2014-01-30 17:03 ` Glenn Morris
0 siblings, 0 replies; 8+ messages in thread
From: Glenn Morris @ 2014-01-30 17:03 UTC (permalink / raw)
To: 16591-done
Rüdiger Sonderfeld wrote:
>> > -*- mode:text; mode:flyspell; -*-
[...]
> It's what the documentation already says
Not exactly, since use of "mode" to enable minor-modes is deprecated.
The docs says to use "eval".
>> 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); -*-
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-)
2014-01-30 0:52 ` bug#16591: -*-mode1-*- -*mode2-*- jidanni
2014-01-30 2:43 ` Glenn Morris
2014-01-30 10:29 ` bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-) Dan Jacobson
@ 2014-01-30 23:46 ` Dan Jacobson
2 siblings, 0 replies; 8+ messages in thread
From: Dan Jacobson @ 2014-01-30 23:46 UTC (permalink / raw)
To: ruediger; +Cc: 16591
>>>>> "RS" == Rüdiger Sonderfeld <ruediger@c-plusplus.de> writes:
RS> It's what the documentation already says
No.
One cannot tell that
-*- mode:text; mode:flyspell; -*-
is also possible.
Please add the example.
Thank you.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-01-30 23:46 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <handler.16591.D16591.13910497853788.notifdone@debbugs.gnu.org>
2014-01-30 0:52 ` bug#16591: -*-mode1-*- -*mode2-*- jidanni
2014-01-30 2:43 ` Glenn Morris
2014-01-30 10:29 ` bug#16591: closed (Re: bug#16591: -*-mode1-*- -*mode2-*-) Dan Jacobson
2014-01-30 13:41 ` Rüdiger Sonderfeld
2014-01-30 13:56 ` Dan Jacobson
2014-01-30 16:38 ` Rüdiger Sonderfeld
2014-01-30 17:03 ` Glenn Morris
2014-01-30 23:46 ` Dan Jacobson
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.