- (make-local-variable 'font-lock-verbose)
- (setq font-lock-verbose nil)
- (when (boundp 'font-lock-support-mode)
- (make-local-variable 'font-lock-support-mode)
- (setq font-lock-support-mode nil))
- (make-local-hook 'font-lock-mode-hook)
- (setq font-lock-mode-hook nil))
+ ;; In XEmacs, auto-initialization of font-lock is not affective
+ ;; when buffer-file-name is not set.
+ (font-lock-set-defaults)
+ (if riece-highlight-enabled
+ (font-lock-mode 1)))