aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-06-13 22:08:07 +0000
committerRichard M. Stallman2004-06-13 22:08:07 +0000
commita67091f2b3b3cca4320852c90fb0b72f7f1ff02f (patch)
tree5179e3e23a8c0864eca4c858e9612d8f99a87a4d
parent7f2081e390d7e2e2e5bacca4fa87fa64941e82f5 (diff)
downloademacs-a67091f2b3b3cca4320852c90fb0b72f7f1ff02f.tar.gz
emacs-a67091f2b3b3cca4320852c90fb0b72f7f1ff02f.zip
(Init Syntax): Explain about vars that do special
things when set with setq or with Custom. (Init Examples): Add line-number-mode example.
-rw-r--r--man/custom.texi25
1 files changed, 22 insertions, 3 deletions
diff --git a/man/custom.texi b/man/custom.texi
index 2502ae2a43d..614fa2442fc 100644
--- a/man/custom.texi
+++ b/man/custom.texi
@@ -1984,9 +1984,20 @@ arguments, all surrounded by parentheses. For example, @code{(setq
1984fill-column 60)} calls the function @code{setq} to set the variable 1984fill-column 60)} calls the function @code{setq} to set the variable
1985@code{fill-column} (@pxref{Filling}) to 60. 1985@code{fill-column} (@pxref{Filling}) to 60.
1986 1986
1987 The second argument to @code{setq} is an expression for the new value of 1987 You can set any Lisp variable with @code{setq}, but with certain
1988the variable. This can be a constant, a variable, or a function call 1988variables @code{setq} won't do what you probably want in the
1989expression. In @file{.emacs}, constants are used most of the time. They can be: 1989@file{.emacs} file. Some variables automatically become buffer-local
1990when set with @code{setq}; what you want in @file{.emacs} is to set
1991the default value, using @code{setq-default}. Some customizable minor
1992mode variables do special things to enable the mode when you set them
1993with Customize, but ordinary @code{setq} won't do that; to enable the
1994mode in your @file{.emacs} file, call the minor mode command. The
1995following section has examples of both of these methods.
1996
1997 The second argument to @code{setq} is an expression for the new
1998value of the variable. This can be a constant, a variable, or a
1999function call expression. In @file{.emacs}, constants are used most
2000of the time. They can be:
1990 2001
1991@table @asis 2002@table @asis
1992@item Numbers: 2003@item Numbers:
@@ -2108,6 +2119,14 @@ which supports most of the languages of Western Europe.
2108 2119
2109@need 1500 2120@need 1500
2110@item 2121@item
2122Turn off Line Number mode, a global minor mode.
2123
2124@example
2125(line-number-mode 0)
2126@end example
2127
2128@need 1500
2129@item
2111Turn on Auto Fill mode automatically in Text mode and related modes. 2130Turn on Auto Fill mode automatically in Text mode and related modes.
2112 2131
2113@example 2132@example