comparison man/new-users-guide/modes.texi @ 462:0784d089fdc9 r21-2-46

Import from CVS: tag r21-2-46
author cvs
date Mon, 13 Aug 2007 11:44:37 +0200
parents abe6d1db359e
children
comparison
equal deleted inserted replaced
461:120ed4009e51 462:0784d089fdc9
120 information. 120 information.
121 121
122 @item asm-mode 122 @item asm-mode
123 @cindex asm-mode 123 @cindex asm-mode
124 Use asm-mode for editing files of assembler code. Look at the file 124 Use asm-mode for editing files of assembler code. Look at the file
125 @file{ /usr/local/lib/xemacs-19.11/lisp/modes/asm.el} for more 125 @file{ /usr/local/lib/xemacs-VERSION/lisp/modes/asm.el} for more
126 information. 126 information.
127 127
128 @end table 128 @end table
129 129
130 There are some other modes and commands for working with other kinds of 130 There are some other modes and commands for working with other kinds of
167 You can also choose this mode by selecting the @b{Syntax Highlighting} 167 You can also choose this mode by selecting the @b{Syntax Highlighting}
168 menu item from the @b{Options} menu on the menu-bar at the 168 menu item from the @b{Options} menu on the menu-bar at the
169 top. If you wish to have this mode enabled permanently, choose 169 top. If you wish to have this mode enabled permanently, choose
170 @b{Save Options} from the @b{Options} menu. @xref{Options Menu}, for 170 @b{Save Options} from the @b{Options} menu. @xref{Options Menu}, for
171 more information on the Options menu. You can also add statements in 171 more information on the Options menu. You can also add statements in
172 your @file{.emacs} file. For each major mode in which you wish to 172 your @file{init.el} file. For each major mode in which you wish to
173 enable this minor mode, you need a statement in your @file{.emacs} 173 enable this minor mode, you need a statement in your @file{init.el}
174 file. The following example shows how to enable the font-lock mode when 174 file. The following example shows how to enable the font-lock mode when
175 the major mode is c-mode. 175 the major mode is c-mode.
176 176
177 @example 177 @example
178 (add-hook 'c-mode-hook 'turn-on-font-lock) 178 (add-hook 'c-mode-hook 'turn-on-font-lock)