diff options
author | Richard M. Stallman <rms@gnu.org> | 2005-02-03 06:49:18 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2005-02-03 06:49:18 +0000 |
commit | 048e6895c62b338e5f80d84cd4a75cfb7e98bf88 (patch) | |
tree | 79209aaa7b4044699cd23e2c437e095e94bbb5d7 /lisp/hi-lock.el | |
parent | e2c11e3b5bdf63e48cb20ccc3cc07033d3d1f34f (diff) | |
download | emacs-048e6895c62b338e5f80d84cd4a75cfb7e98bf88.tar.gz |
(hi-lock-mode): Turning on Hi-Lock turns on Font-Lock.
Diffstat (limited to 'lisp/hi-lock.el')
-rw-r--r-- | lisp/hi-lock.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 99eeb698171..81c7296760f 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el @@ -294,6 +294,10 @@ is found. A mode is excluded if it's in the list `hi-lock-exclude-modes'." (when (and (not hi-lock-mode-prev) hi-lock-mode) (add-hook 'find-file-hooks 'hi-lock-find-file-hook) (add-hook 'font-lock-mode-hook 'hi-lock-font-lock-hook) + (when (eq nil font-lock-defaults) + (setq font-lock-defaults '(nil))) + (unless font-lock-mode + (font-lock-mode 1)) (define-key-after menu-bar-edit-menu [hi-lock] (cons "Regexp Highlighting" hi-lock-menu)) (dolist (buffer (buffer-list)) |