X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Friece-guess.el;h=c5c32703abafe49553e4e58c058840865a617a66;hb=c488c8df3c898258c0b4db946c6e9e94898ef277;hp=c9dba355b4547d097cbd6bafbe738e5bd382ac9c;hpb=dd2c976135cefa739cf397bcc9f7aff7dce3bbaa;p=elisp%2Friece.git diff --git a/lisp/riece-guess.el b/lisp/riece-guess.el index c9dba35..c5c3270 100644 --- a/lisp/riece-guess.el +++ b/lisp/riece-guess.el @@ -21,13 +21,17 @@ ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, ;; Boston, MA 02111-1307, USA. +;;; Commentary: + +;; NOTE: This is an add-on module for Riece. + ;;; Code: (require 'riece-identity) (require 'riece-commands) (defgroup riece-guess nil - "Guess the next channel" + "Guess the next channel." :tag "Guess" :prefix "riece-" :group 'riece) @@ -37,10 +41,8 @@ :type '(repeat function) :group 'riece-guess) -(defvar riece-guess-enabled nil) - (defconst riece-guess-description - "Guess the next channel, using multiple methods") + "Guess the next channel, using multiple methods.") (defvar riece-current-channels) @@ -99,8 +101,7 @@ merge the results." (define-key riece-dialogue-mode-map "g" 'riece-command-guess-switch-to-channel) (define-key riece-channel-list-mode-map - "g" 'riece-command-guess-switch-to-channel) - (setq riece-guess-enabled t)) + "g" 'riece-command-guess-switch-to-channel)) (defun riece-guess-disable () (define-key riece-command-mode-map @@ -108,9 +109,8 @@ merge the results." (define-key riece-dialogue-mode-map "g" nil) (define-key riece-channel-list-mode-map - "g" nil) - (setq riece-guess-enabled nil)) - + "g" nil)) + (provide 'riece-guess) ;;; riece-guess.el ends here