Source

egg-its / egg-kwnn-leim.el

Diff from to

File egg-kwnn-leim.el

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