Source

egg-its / egg-leim.el

Diff from to

File egg-leim.el

 ;;
 ;;  Add pointers to Egg documentation in LEIM format
 
+;;;###autoload
 (defun egg-activate (&optional name)
   (if (featurep 'wnn)
       (require 'egg)
   (egg-mode)
   (toggle-egg-mode))
 
+;;;###autoload
 (defun egg-inactivate ()
   (cond (egg:*mode-on* (toggle-egg-mode))))
 
-(register-input-method
- 'japanese-egg-wnn "Japanese"
- 'egg-activate nil
- "EGG - an interface to the Wnn kana to kanji conversion program" )
+;;;###autoload
+(when (and (featurep 'mule) (featurep 'wnn))
+  (register-input-method
+   'japanese-egg-wnn "Japanese"
+   'egg-activate nil
+   "EGG - an interface to the Wnn kana to kanji conversion program" ))
 
 (provide 'egg-leim)