Add the following comment to add-on modules.
[riece] / lisp / riece-history.el
index e737159..79dd389 100644 (file)
@@ -1,4 +1,4 @@
-;;; riece-history.el --- channel history management add-on
+;;; riece-history.el --- manage history of channel shifting
 ;; Copyright (C) 1998-2003 Daiki Ueno
 
 ;; Author: Daiki Ueno <ueno@unixuser.org>
@@ -23,6 +23,8 @@
 
 ;;; Commentary:
 
+;; NOTE: This is an add-on module for Riece.
+
 ;; You can check recently visited channels via `C-c g' in the commands
 ;; buffer, by adding the following lines to ~/.riece/init.el:
 
 (require 'riece-globals)
 (require 'riece-highlight)
 (require 'riece-identity)
+(require 'riece-signal)
 (require 'ring)
 
 (defgroup riece-history nil
-  "Channel history"
+  "Manage history of channel shifting."
   :tag "History"
   :prefix "riece-"
   :group 'riece)
   :group 'riece-highlight-faces)
 (defvar riece-channel-list-history-face 'riece-channel-list-history-face)
 
+(unless (riece-facep 'riece-modeline-history-face)
+  (make-face 'riece-modeline-history-face
+            "Face used for displaying history channels in modeline.")
+  (if (featurep 'xemacs)
+      (set-face-parent 'riece-modeline-history-face 'modeline))
+  (set-face-foreground 'riece-modeline-history-face
+                      (face-foreground 'riece-channel-list-history-face)))
+
+(defvar riece-modeline-history-face 'riece-modeline-history-face)
+
 (defvar riece-channel-history nil)
 
 (defvar riece-history-enabled nil)
 
 (defconst riece-history-description
-  "Keep track channel history")
+  "Manage history of channel shifting.")
 
 (defun riece-guess-channel-from-history ()
   (let ((length (ring-length riece-channel-history))
                string (replace-match "%%" nil nil string)))
        (list (format "%d:" index)
              (riece-propertize-modeline-string
-              string 'face 'riece-channel-list-history-face)))))
+              string 'face 'riece-modeline-history-face)))))
 
 ;;; (defun riece-history-requires ()
 ;;;   (if (memq 'riece-guess riece-addons)