# HG changeset patch # User Kenichi Handa # Date 1194312682 0 # Node ID 0c8b86e9b0288314a4be4cdef2e26005a314c854 # Parent 8bf6b9dbfa261a50daf2552ca41830f14c1cf7a6 (Select Input Method): Describe how to activate an input method in the text mode. diff -r 8bf6b9dbfa26 -r 0c8b86e9b028 doc/emacs/mule.texi --- a/doc/emacs/mule.texi Mon Nov 05 20:52:29 2007 +0000 +++ b/doc/emacs/mule.texi Tue Nov 06 01:31:22 2007 +0000 @@ -534,6 +534,18 @@ This sets the default input method to be @code{chinese-tonepy} whenever you choose a Chinese-GB language environment. +You can instruct Emacs to activate a certain input method +automatically. For example: + +@lisp +(add-hook 'text-mode-hook + (lambda () (set-input-method "german-prefix"))) +@end lisp + +@noindent +This activates the input emthod ``german-prefix'' automatically in the +Text mode. + @findex quail-set-keyboard-layout Some input methods for alphabetic scripts work by (in effect) remapping the keyboard to emulate various keyboard layouts commonly used