X-Git-Url: http://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-guess.el;h=c5c32703abafe49553e4e58c058840865a617a66;hp=2a5371db5dce419d5bb02d468aa53531cf650692;hb=03065d2ff4a647d8d1d030a211329ba1910372ac;hpb=07fb1f469c2b57317c1af22a709a181d4ecaac2c diff --git a/lisp/riece-guess.el b/lisp/riece-guess.el index 2a5371d..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,6 +41,9 @@ :type '(repeat function) :group 'riece-guess) +(defconst riece-guess-description + "Guess the next channel, using multiple methods.") + (defvar riece-current-channels) (defun riece-guess-candidates () @@ -86,13 +93,24 @@ merge the results." (defvar riece-channel-list-mode-map) (defun riece-guess-insinuate () + ) + +(defun riece-guess-enable () (define-key riece-command-mode-map "\C-cg" 'riece-command-guess-switch-to-channel) (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)) - + +(defun riece-guess-disable () + (define-key riece-command-mode-map + "\C-cg" nil) + (define-key riece-dialogue-mode-map + "g" nil) + (define-key riece-channel-list-mode-map + "g" nil)) + (provide 'riece-guess) ;;; riece-guess.el ends here