2003-05-30 Daiki Ueno <ueno@unixuser.org>
+ * riece-highlight.el: Make it an add-on.
+ (riece-highlight-insinuate): New function.
+ * riece.el: Don't require 'riece-highlight.
+ * riece-options.el (riece-addons): Turn on riece-highlight and
+ riece-ctcp by default.
+
* riece-display.el (riece-configure-windows-predicate): New function.
(riece-configure-windows-predicate): New user option.
(riece-redisplay-buffers): Use it.
:type '(repeat (list string))
:group 'riece-highlight)
-(put 'riece-channel-mode 'font-lock-defaults
- '(riece-highlight-font-lock-keywords t))
-(put 'riece-others-mode 'font-lock-defaults
- '(riece-highlight-font-lock-keywords t))
-(put 'riece-dialogue-mode 'font-lock-defaults
- '(riece-highlight-font-lock-keywords t))
-
(defun riece-highlight-schedule-turn-on-font-lock ()
(add-hook 'riece-channel-mode-hook
'riece-highlight-turn-on-font-lock)
(add-hook 'riece-dialogue-mode-hook
'riece-highlight-turn-on-font-lock))
-(add-hook 'riece-after-load-startup-hook
- 'riece-highlight-schedule-turn-on-font-lock)
-
(defvar font-lock-support-mode)
(defun riece-highlight-turn-on-font-lock ()
(make-local-variable 'font-lock-defaults)
(if (looking-at riece-prefix-regexp)
(put-text-property (match-beginning 1) (match-end 1) 'invisible t))))
+(defun riece-highlight-insinuate ()
+ (put 'riece-channel-mode 'font-lock-defaults
+ '(riece-highlight-font-lock-keywords t))
+ (put 'riece-others-mode 'font-lock-defaults
+ '(riece-highlight-font-lock-keywords t))
+ (put 'riece-dialogue-mode 'font-lock-defaults
+ '(riece-highlight-font-lock-keywords t))
+ (add-hook 'riece-after-load-startup-hook
+ 'riece-highlight-schedule-turn-on-font-lock))
+
(provide 'riece-highlight)
;;; riece-highlight.el ends here