How can I use `font-lock.el?
Include lines like the following in your .emacs file for each mode in which you want to enable font-lock: (setq emacs-lisp-mode-hook ‘(lambda () (font-lock-mode 1))) By default, font-lock does not display in colour. If you want colour strings, specify the face as follows: (add-hook ‘font-lock-mode-hook ‘(lambda () (make-face ‘keyword-face) (set-face-foreground ‘keyword-face “tomato”) (setq font-lock-keyword-face ‘keyword-face) (make-face ‘comment-face) (set-face-foreground ‘comment-face “violetred4”) (setq font-lock-comment-face ‘comment-face) (make-face ‘string-face) (set-face-foreground ‘string-face “darkgreen”) (setq font-lock-string-face ‘string-face) (make-face ‘function-face) (set-face-foreground ‘function-face “blueviolet”) (setq font-lock-function-name-face ‘function-face) (make-face ‘c-type-face) (set-face-foreground ‘c-type-face “darkolivegreen”) (setq font-lock-type-face ‘c-type-face) )) There are improved versions of font-lock: face-lock can handle colours and grey scales;