[Top][All Lists]

[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" <>
> To:
> 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).

reply via email to

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