[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Auto Fill Comments
From: |
Stefan Monnier |
Subject: |
Re: Auto Fill Comments |
Date: |
Mon, 30 Nov 2020 17:32:55 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> 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
- 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 <=
- Re: Auto Fill Comments, Christopher Dimech, 2020/11/30
- 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