1984 |
fill-column 60)} calls the function @code{setq} to set the variable |
fill-column 60)} calls the function @code{setq} to set the variable |
1985 |
@code{fill-column} (@pxref{Filling}) to 60. |
@code{fill-column} (@pxref{Filling}) to 60. |
1986 |
|
|
1987 |
The second argument to @code{setq} is an expression for the new value of |
You can set any Lisp variable with @code{setq}, but with certain |
1988 |
the variable. This can be a constant, a variable, or a function call |
variables @code{setq} won't do what you probably want in the |
1989 |
expression. In @file{.emacs}, constants are used most of the time. They can be: |
@file{.emacs} file. Some variables automatically become buffer-local |
1990 |
|
when set with @code{setq}; what you want in @file{.emacs} is to set |
1991 |
|
the default value, using @code{setq-default}. Some customizable minor |
1992 |
|
mode variables do special things to enable the mode when you set them |
1993 |
|
with Customize, but ordinary @code{setq} won't do that; to enable the |
1994 |
|
mode in your @file{.emacs} file, call the minor mode command. The |
1995 |
|
following section has examples of both of these methods. |
1996 |
|
|
1997 |
|
The second argument to @code{setq} is an expression for the new |
1998 |
|
value of the variable. This can be a constant, a variable, or a |
1999 |
|
function call expression. In @file{.emacs}, constants are used most |
2000 |
|
of the time. They can be: |
2001 |
|
|
2002 |
@table @asis |
@table @asis |
2003 |
@item Numbers: |
@item Numbers: |
2118 |
@end example |
@end example |
2119 |
|
|
2120 |
@need 1500 |
@need 1500 |
2121 |
|
@item |
2122 |
|
Turn 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 |
@item |
2130 |
Turn on Auto Fill mode automatically in Text mode and related modes. |
Turn on Auto Fill mode automatically in Text mode and related modes. |
2131 |
|
|