-;;; riece-biff.el --- biff add-on
+;;; riece-biff.el --- be notified if messages arrives
;; Copyright (C) 2004 OHASHI Akira
;; Author: OHASHI Akira <bg66@koka-in.org>
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
;;; Commentary:
-;; To use, add the following line to your ~/.riece/init.el:
-;; (add-to-list 'riece-addons 'riece-biff)
+;; NOTE: This is an add-on module for Riece.
;;; Code:
(require 'riece-message)
(defgroup riece-biff nil
- "Biff for new arrival messages."
+ "Be notified if messages arrives."
:prefix "riece-"
:group 'riece)
(defvar riece-biff-mode-string 'riece-biff-default-mode-string)
-(defvar riece-biff-enabled nil)
-
(defconst riece-biff-description
- "Biff for new arrival messages")
+ "Be notified if messages arrives.")
(defun riece-biff-after-display-message-function (message)
- (when (and riece-biff-enabled
+ (when (and (get 'riece-biff 'riece-addon-enabled)
(not (or (eq (window-buffer (selected-window))
(get-buffer riece-command-buffer))