@cindex font-lock-mode
You can modify the behavior of Emacs in minor ways permanently by
-putting your changes in your @file{.emacs} file. This file contains Lisp
+putting your changes in your @file{init.el} file. This file contains Lisp
function call expressions. Each of these expressions will consist of a
function name followed by arguments, all surrounded by parentheses. For
example, to turn on the auto-fill-mode (i.e. break lines automatically
when they become too long) , put the following line in your
-@file{.emacs} file:
+@file{init.el} file:
@example
(add-hook 'text-mode-hook
Similarly, to enable the "font-lock mode" which displays your program in
different fonts and colors(@pxref{Modes}), put the following in your
-@file{.emacs} file. The comments above the statement explain what the
+@file{init.el} file. The comments above the statement explain what the
statements do.
@example
@noindent
For other customizations regarding the font-lock face, look at the file
-@file{/usr/local/lib/xemacs-19.11/etc/sample.emacs}.
+@file{/usr/local/lib/xemacs-VERSION/etc/sample.init.el}.
@menu
* Setting Variables:: Customizing Emacs variables
* Init File:: Some examples of Lisp expressions in
- .emacs file
+ init.el file
@end menu
@node Setting Variables, Init File, Other Customizations, Other Customizations
After you type any of the above commands, you will be prompted for a
variable name in the @dfn{echo area}. Type in the name of the variable,
-for example, type @var{case-fold-search} @key{RET}
+for example, type @code{case-fold-search} @key{RET}
Your window will split into two and you will see the following message
in that window:
variable} , you will see that the new value of case-fold-search will be
"nil" and your searches will be case-sensitive. This will be effective
only for that Emacs session. If you want to change the value of a
-variable permanently put the following statement in your @file{.emacs}
+variable permanently put the following statement in your @file{init.el}
file :
@example
@noindent
This statement will make searches case-sensitive only in the current
-buffer which is the @file{.emacs} file. This will not be very useful. To
+buffer which is the @file{init.el} file. This will not be very useful. To
make searches case-sensitive globally in all buffers, use:
@example
@cindex init file examples
For customizing Emacs, you need to put Lisp expressions in your
-@file{.emacs} file. The following are some useful Lisp expressions. If
-you find any of them useful, just type them in your @file{.emacs} file:
+@file{init.el} file. The following are some useful Lisp expressions. If
+you find any of them useful, just type them in your @file{init.el} file:
@itemize @bullet
@item
@end example
@noindent
-The value of the variable @var{c-tab-always-indent} is usually @samp{t}
+The value of the variable @code{c-tab-always-indent} is usually @samp{t}
for @samp{true}. When this variable is true, then hitting the @key{TAB}
-key always indents the current line.
+key always indents the current line.
@item
This expression will turn on the @var{auto-fill-mode} when you are in
This mode will automatically break lines when you type a space so that
the lines don't become too long. The length of the lines is controlled
-by the variable @var{fill-column}. You can set this variable to a value
+by the variable @code{fill-column}. You can set this variable to a value
you wish. Look at the documentation for this variable to see its default
value. To change the value to 75 for example, use:
@noindent
If we use "setq" instead of "setq-default" then searches will be
case-sensitive only in the current buffer's local value. In this case the
-buffer would be the @file{.emacs} file. Since this would not be too
+buffer would be the @file{init.el} file. Since this would not be too
helpful and we want to have case-sensitive searches in all buffers, we
have to use "setq-default".
@item
If you don't want the text to be highlighted when you use commands for
marking regions so as to use the @dfn{kill} and @dfn{yank} commands
-later, you can use the following expression in your @file{.emacs} file:
+later, you can use the following expression in your @file{init.el} file:
@vindex zmacs-regions
@example
@item
To control the number of buffers listed when you select the @b{Buffers}
-menu, you need to set the variable @var{buffers-menu-max-size} to
+menu, you need to set the variable @code{buffers-menu-max-size} to
whatever value you wish. For example, if you want 20 buffers to be listed
when you select @b{Buffers} use:
@item
If you want an extensive menu-bar use the following expression in your
-@file{.emacs} file.
+@file{init.el} file.
@example
(load "big-menubar")
@noindent
If you want to write your own menus, you can look at some of the
examples in
-@file{/usr/local/lib/xemacs-20.0/lisp/packages/big-menubar.el} file.
+@file{/usr/local/lib/xemacs/xemacs-packages/lisp/edit-utils/big-menubar.el} file.
@end itemize
- For more information on initializing your @file{.emacs} file,
+ For more information on initializing your @file{init.el} file,
@xref{Init File,,,xemacs,XEmacs User's Manual}. You should also look at
-@file{/usr/local/lib/xemacs-20.0/etc/sample.emacs}, which is a sample
-@file{.emacs} file. It contains some of the commonly desired
+@file{/usr/local/lib/xemacs-VERSION/etc/sample.init.el}, which is a sample
+@file{init.el} file. It contains some of the commonly desired
customizations in Emacs.