* riece-epg.el
[riece] / lisp / riece-skk-kakutei.el
index 65c1984..085ebdd 100644 (file)
@@ -1,4 +1,4 @@
-;;; riece-skk-kakutei.el --- add-on skk-kakutei
+;;; riece-skk-kakutei.el --- remove SKK's preedit mark before sending messages
 ;; Copyright (C) 2003 TAKAHASHI Kaoru
 
 ;; Author: TAKAHASHI "beatmaria" Kaoru <kaoru@kaisei.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:
 
-;; This add-on deny SKK's sankaku send.
-
-;; To use, add the following line to your ~/.riece/init.el:
-;; (add-to-list 'riece-addons 'riece-skk-kakutei)
+;; NOTE: This is an add-on module for Riece.
 
 ;;; Code:
 
 (eval-when-compile (require 'riece))
 
+(defconst riece-skk-kakutei-description
+  "Remove SKK's preedit mark before sending messages.")
+
 (defun riece-skk-kakutei-command-enter-message ()
   "Send the current line to the current channel."
   (interactive)
@@ -42,7 +42,7 @@
   "Send the current line to the current channel as NOTICE."
   (interactive)
   (when (riece-skk-kakutei)
-    (riece-command-enter-message-ad-notice)))
+    (riece-command-enter-message-as-notice)))
 
 (defun riece-skk-kakutei ()
   "When required after-follow return `t'."
         t)))
 
 (defun riece-skk-kakutei-insinuate ()
+  )
+
+(defun riece-skk-kakutei-enable ()
   (riece-define-keys riece-command-mode-map
     "\r" riece-skk-kakutei-command-enter-message
     [(control return)] riece-skk-kakutei-command-enter-message-as-notice))
 
+(defun riece-skk-kakutei-disable ()
+  (riece-define-keys riece-command-mode-map
+    "\r" riece-command-enter-message
+    [(control return)] riece-command-enter-message-as-notice))
+
 (provide 'riece-skk-kakutei)
 
 ;;; riece-skk-kakutei.el ends here