comparison man/new-users-guide/custom2.texi @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents 74fd4e045ea6
children
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
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