Mercurial > emacs
comparison man/display.texi @ 90182:f042e7c0fe20
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-53
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 302-319)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 69)
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 20 May 2005 04:22:05 +0000 |
parents | 146c086df160 6d49a2df78a7 |
children | 5b029ff3b08d |
comparison
equal
deleted
inserted
replaced
90181:0c828e2b0b6f | 90182:f042e7c0fe20 |
---|---|
175 @code{region}; you can control the style of highlighting by changing the | 175 @code{region}; you can control the style of highlighting by changing the |
176 style of this face (@pxref{Face Customization}). @xref{Transient Mark}, | 176 style of this face (@pxref{Face Customization}). @xref{Transient Mark}, |
177 for more information about Transient Mark mode and activation and | 177 for more information about Transient Mark mode and activation and |
178 deactivation of the mark. | 178 deactivation of the mark. |
179 | 179 |
180 One easy way to use faces is to turn on Font Lock mode. This minor | 180 One easy way to use faces is to turn on Font Lock mode. @xref{Font |
181 mode, which is always local to a particular buffer, arranges to | 181 Lock}, for more information about Font Lock mode and syntactic |
182 choose faces according to the syntax of the text you are editing. It | 182 highlighting. |
183 can recognize comments and strings in most languages; in several | |
184 languages, it can also recognize and properly highlight various other | |
185 important constructs. @xref{Font Lock}, for more information about | |
186 Font Lock mode and syntactic highlighting. | |
187 | 183 |
188 You can print out the buffer with the highlighting that appears | 184 You can print out the buffer with the highlighting that appears |
189 on your screen using the command @code{ps-print-buffer-with-faces}. | 185 on your screen using the command @code{ps-print-buffer-with-faces}. |
190 @xref{PostScript}. | 186 @xref{PostScript}. |
191 | 187 |
204 Some special modes, such as Occur mode and Info mode, have completely | 200 Some special modes, such as Occur mode and Info mode, have completely |
205 specialized ways of assigning fonts for Font Lock mode. | 201 specialized ways of assigning fonts for Font Lock mode. |
206 | 202 |
207 @findex font-lock-mode | 203 @findex font-lock-mode |
208 @findex turn-on-font-lock | 204 @findex turn-on-font-lock |
209 The command @kbd{M-x font-lock-mode} turns Font Lock mode on or off | 205 The command @kbd{M-x font-lock-mode} turns Font Lock mode on with |
210 according to the argument, and toggles the mode when it has no argument. | 206 positive argument, off with negative or zero argument, and toggles the |
211 The function @code{turn-on-font-lock} unconditionally enables Font Lock | 207 mode when it has no argument. The function @code{turn-on-font-lock} |
212 mode. This is useful in mode-hook functions. For example, to enable | 208 unconditionally enables Font Lock mode. This is useful in mode-hook |
213 Font Lock mode whenever you edit a C file, you can do this: | 209 functions. For example, to enable Font Lock mode whenever you edit a |
210 C file, you can do this: | |
214 | 211 |
215 @example | 212 @example |
216 (add-hook 'c-mode-hook 'turn-on-font-lock) | 213 (add-hook 'c-mode-hook 'turn-on-font-lock) |
217 @end example | 214 @end example |
218 | 215 |
219 @findex global-font-lock-mode | 216 @findex global-font-lock-mode |
220 @vindex global-font-lock-mode | 217 @vindex global-font-lock-mode |
221 To turn on Font Lock mode automatically in all modes which support | 218 To turn on Font Lock mode automatically in all modes which support |
222 it, customize the variable @code{global-font-lock-mode} or use the | 219 it, customize the variable @code{global-font-lock-mode} using the |
223 function @code{global-font-lock-mode} in your @file{.emacs} file, like | 220 Customize interface (@pxref{Easy Customization}) or use the function |
224 this: | 221 @code{global-font-lock-mode} in your @file{.emacs} file, like this: |
225 | 222 |
226 @example | 223 @example |
227 (global-font-lock-mode 1) | 224 (global-font-lock-mode 1) |
228 @end example | 225 @end example |
229 | 226 |
639 | 636 |
640 The fringes indicate line truncation with short horizontal arrows | 637 The fringes indicate line truncation with short horizontal arrows |
641 meaning ``there's more text on this line which is scrolled | 638 meaning ``there's more text on this line which is scrolled |
642 horizontally out of view;'' clicking the mouse on one of the arrows | 639 horizontally out of view;'' clicking the mouse on one of the arrows |
643 scrolls the display horizontally in the direction of the arrow. The | 640 scrolls the display horizontally in the direction of the arrow. The |
644 fringes also indicate other things such as empty lines, or where a | 641 fringes can also indicate other things, such as empty lines, or where a |
645 program you are debugging is executing (@pxref{Debuggers}). | 642 program you are debugging is executing (@pxref{Debuggers}). |
646 | 643 |
647 @findex set-fringe-style | 644 @findex set-fringe-style |
648 @findex fringe-mode | 645 @findex fringe-mode |
649 You can enable and disable the fringes for all frames using | 646 You can enable and disable the fringes for all frames using |
726 | 723 |
727 Emacs has the ability to hide lines indented more than a certain number | 724 Emacs has the ability to hide lines indented more than a certain number |
728 of columns (you specify how many columns). You can use this to get an | 725 of columns (you specify how many columns). You can use this to get an |
729 overview of a part of a program. | 726 overview of a part of a program. |
730 | 727 |
731 To hide lines, type @kbd{C-x $} (@code{set-selective-display}) with a | 728 To hide lines in the current buffer, type @kbd{C-x $} |
732 numeric argument @var{n}. Then lines with at least @var{n} columns of | 729 (@code{set-selective-display}) with a numeric argument @var{n}. Then |
733 indentation disappear from the screen. The only indication of their | 730 lines with at least @var{n} columns of indentation disappear from the |
734 presence is that three dots (@samp{@dots{}}) appear at the end of each | 731 screen. The only indication of their presence is that three dots |
735 visible line that is followed by one or more hidden ones. | 732 (@samp{@dots{}}) appear at the end of each visible line that is |
733 followed by one or more hidden ones. | |
736 | 734 |
737 The commands @kbd{C-n} and @kbd{C-p} move across the hidden lines as | 735 The commands @kbd{C-n} and @kbd{C-p} move across the hidden lines as |
738 if they were not there. | 736 if they were not there. |
739 | 737 |
740 The hidden lines are still present in the buffer, and most editing | 738 The hidden lines are still present in the buffer, and most editing |