Mercurial > hg > xemacs-beta
comparison man/new-users-guide/custom2.texi @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | c9fe270a4101 |
children | 697ef44129c6 |
comparison
equal
deleted
inserted
replaced
397:f4aeb21a5bad | 398:74fd4e045ea6 |
---|---|
44 | 44 |
45 ;;; enables the font-lock-mode in Texinfo Mode | 45 ;;; enables the font-lock-mode in Texinfo Mode |
46 (add-hook 'texinfo-mode-hook 'turn-on-font-lock) | 46 (add-hook 'texinfo-mode-hook 'turn-on-font-lock) |
47 | 47 |
48 ;;; enables the font-lock mode in C Mode | 48 ;;; enables the font-lock mode in C Mode |
49 (add-hook 'c-mode-hook 'turn-on-font-lock) | 49 (add-hook 'c-mode-hook 'turn-on-font-lock) |
50 @end example | 50 @end example |
51 | 51 |
52 To turn on the font-lock mode in other Major Modes like emacs-lisp, just | 52 To turn on the font-lock mode in other Major Modes like emacs-lisp, just |
53 put the name of the mode with "-hook" appended to it as the middle | 53 put the name of the mode with "-hook" appended to it as the middle |
54 parameter in the above examples. You can also select the color that the | 54 parameter in the above examples. You can also select the color that the |