Lines Matching defs:font
1 ;;; generic.el --- defining simple major modes with comment and font-lock
8 ;; Keywords: generic, comment, font-lock
32 ;; which provide basic comment and font-lock support. These modes are
49 ;; * List of keywords to font-lock. Each keyword should be a string.
51 ;; face different from `font-lock-keyword-face', you can use the
55 ;; * Additional expressions to font-lock. This should be a list of
57 ;; `font-lock-keywords'.
87 ;; Be careful that your font-lock definitions are correct. Getting
102 (defvar generic-font-lock-keywords nil
103 "Keywords for `font-lock-defaults' in a generic mode.")
104 (make-variable-buffer-local 'generic-font-lock-keywords)
105 (define-obsolete-variable-alias 'generic-font-lock-defaults 'generic-font-lock-keywords "22.1")
119 font-lock-list auto-mode-list
138 `font-lock-keyword-face'. Each keyword should be a string.
142 `font-lock-keywords'.
180 ,font-lock-list ,function-list)))))
184 font-lock-list function-list)
200 ;; or font-lock expressions, so comments can be highlighted.
201 (setq generic-font-lock-keywords font-lock-list)
204 generic-font-lock-keywords))
205 (setq font-lock-defaults '(generic-font-lock-keywords))
216 Generic modes provide basic comment and font-lock functionality
302 "Return a `font-lock-keywords' construct that highlights KEYWORD-LIST.
308 `font-lock-keywords'."