Mercurial > hg > xemacs-beta
comparison man/new-users-guide/custom2.texi @ 440:8de8e3f6228a r21-2-28
Import from CVS: tag r21-2-28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:33:38 +0200 |
parents | 3ecd8885ac67 |
children | 0784d089fdc9 |
comparison
equal
deleted
inserted
replaced
439:357dd071b03c | 440:8de8e3f6228a |
---|---|
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 |