[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Auto Fill Comments
From: |
Christopher Dimech |
Subject: |
Re: Auto Fill Comments |
Date: |
Tue, 1 Dec 2020 00:44:13 +0100 |
> Sent: Monday, November 30, 2020 at 11:32 PM
> From: "Stefan Monnier" <monnier@iro.umontreal.ca>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Auto Fill Comments
>
> > I just have a typical example in front of me right now. I have a small
> > program written in Scheme. To make sure Emacs starts Scheme mode, the
> > end of the file has:
> >
> > ;; Local Variables:
> > ;; mode: scheme
> > ;; End:
> >
> > This makes sure the variable `mode' is set to the value "scheme". But
>
> Hmm... not sure if it's the best example: there is no `mode` variable.
> The corresponding variable is called `major-mode` and will be set to
> `scheme-mode` and the above doesn't set the var directly but just calls
> the function `scheme-mode` (which then sets the var, tho it doesn't
> have to: you can also use `;; mode: auto-fill` which will enable
> `auto-fill-mode` and won't set `major-mode`).
>
> IOW, in file-local variables, `mode` is quite special (there aren't many
> such exceptions. The main other one is `coding`).
>
> Stefan
>
I agree with Stefan's evaluation. It must be specifically elisp coding
and coding many would try to do os have set when working on their own
files (perhaps they have been coding in c, for instance).
- Re: Auto Fill Comments, (continued)
- RE: Auto Fill Comments, Drew Adams, 2020/11/29
- Re: Auto Fill Comments, Emanuel Berg, 2020/11/29
- Re: Auto Fill Comments, Jean Louis, 2020/11/30
- Re: Auto Fill Comments, Michael Heerdegen, 2020/11/30
- Re: Auto Fill Comments, Christopher Dimech, 2020/11/30
- Re: Auto Fill Comments, tomas, 2020/11/30
- Re: Auto Fill Comments, Stefan Monnier, 2020/11/30
- Re: Auto Fill Comments,
Christopher Dimech <=
- RE: Auto Fill Comments, Drew Adams, 2020/11/30
- Re: RE: Auto Fill Comments, Christopher Dimech, 2020/11/30
- Re: Auto Fill Comments, Michael Heerdegen, 2020/11/30
- Re: Auto Fill Comments, Christopher Dimech, 2020/11/30
- Re: Auto Fill Comments, Yuri Khan, 2020/11/29
- Re: Auto Fill Comments, Christopher Dimech, 2020/11/29
- Re: Auto Fill Comments, Christopher Dimech, 2020/11/28
- Re: Auto Fill Comments, Eli Zaretskii, 2020/11/28
- Re: Auto Fill Comments, Christopher Dimech, 2020/11/28
- Re: Auto Fill Comments, Arthur Miller, 2020/11/28