* bug#1122: say how to turn OFF auto-fill with local variables
@ 2008-10-08 19:19 jidanni
2012-02-22 0:59 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: jidanni @ 2008-10-08 19:19 UTC (permalink / raw
To: bug-gnu-emacs
In (info "(emacs)Specifying File Variables")
For example, you may be tempted to try to turn on Auto Fill mode with
a local variable list. That is a mistake. The choice of Auto Fill mode
or not is a matter of individual taste, not a matter of the contents of
particular files. If you want to use Auto Fill, set up major mode hooks
with your `.emacs' file to turn it on (when appropriate) for you alone
(*note Init File::). Don't use a local variable list to impose your
taste on everyone.
OK, but say how to (turn it on and OFF, supposing we have it on by
default) anyway with local variables, just in case.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bug#1122: say how to turn OFF auto-fill with local variables
[not found] <mailman.611.1223495405.25473.bug-gnu-emacs@gnu.org>
@ 2008-10-09 13:47 ` Ted Zlatanov
0 siblings, 0 replies; 3+ messages in thread
From: Ted Zlatanov @ 2008-10-09 13:47 UTC (permalink / raw
To: bug-gnu-emacs
On Thu, 09 Oct 2008 03:19:56 +0800 jidanni@jidanni.org wrote:
j> In (info "(emacs)Specifying File Variables")
j> For example, you may be tempted to try to turn on Auto Fill mode with
j> a local variable list. That is a mistake. The choice of Auto Fill mode
j> or not is a matter of individual taste, not a matter of the contents of
j> particular files. If you want to use Auto Fill, set up major mode hooks
j> with your `.emacs' file to turn it on (when appropriate) for you alone
j> (*note Init File::). Don't use a local variable list to impose your
j> taste on everyone.
j> OK, but say how to (turn it on and OFF, supposing we have it on by
j> default) anyway with local variables, just in case.
Tt would be nice to have something similar to Customize, but which
targets local variables and edits them accordingly. Then the
instructions above could be "run M-x customize-local-variable auto-fill-mode".
Ted
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#1122: say how to turn OFF auto-fill with local variables
2008-10-08 19:19 jidanni
@ 2012-02-22 0:59 ` Glenn Morris
0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2012-02-22 0:59 UTC (permalink / raw
To: 1122-done
The manual says:
Next, suppose you don't want Auto Fill mode turned on in LaTeX mode,
which is one of the modes based on Text mode. You can do this with the
following additional line:
(add-hook 'latex-mode-hook (lambda () (auto-fill-mode -1)))
and
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); -*-
That covers everything that needs to be covered.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-22 0:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.611.1223495405.25473.bug-gnu-emacs@gnu.org>
2008-10-09 13:47 ` bug#1122: say how to turn OFF auto-fill with local variables Ted Zlatanov
2008-10-08 19:19 jidanni
2012-02-22 0:59 ` Glenn Morris
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.