]> code.delx.au - gnu-emacs/blobdiff - lisp/hi-lock.el
*** empty log message ***
[gnu-emacs] / lisp / hi-lock.el
index 99eeb6981713fba80c0d944919889fdbe06d7631..81c7296760f7ff0cb148a64ed0ee10cd64ed99f6 100644 (file)
@@ -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))