Source

egg-its / egg-sj3-leim.el

Diff from to

egg-sj3-leim.el

 
 ;;; Code:
 
+;;;###autoload
 (defun egg-sj3-activate (&optional name)
   (setq inactivate-current-input-method-function 'egg-sj3-inactivate)
   (setq egg-default-startup-file "eggrc-sj3")
   (egg-mode)
   (toggle-egg-mode))
 
+;;;###autoload
 (defun egg-sj3-inactivate ()
   (cond (egg:*mode-on* (toggle-egg-mode))))
 
-(register-input-method
- 'japanese-egg-sj3 "Japanese"
- 'egg-sj3-activate nil
- "EGG - an interface to the SJ3 kana to kanji conversion program" )
+;;;###autoload
+(when (featurep 'wnn)
+  (register-input-method
+   'japanese-egg-sj3 "Japanese"
+   'egg-sj3-activate nil
+   "EGG - an interface to the SJ3 kana to kanji conversion program" ))
 
 (provide 'egg-sj3-leim)