In Emacs input Chinese, generally with IBUs a class of input method can also cope, but back and forth a bit troublesome, here introduce a good plugin Eim.
-Installation
Since this plugin is not found in list-packages, it cannot be installed automatically, choose to manually clone directly from GitHub (for easy management, manually installed plugins are placed under ~/.emacs.d/manual_plugin)
$ git clone https://github.com/viogus/eim.git ~/.emacs.d/manual_plugin/eim-master
-Configuration
Add the following statements to ~/.emacs,
;;;; Use the Ctrl + \ to toggle Chinese and 中文版 input mode.
(Add-to-list ' Load-path "~/.emacs.d/manual_plugin/eim-master")
(AutoLoad ' Eim-use-package "Eim" "another Emacs Input Method")
(Register-input-method
"Eim-py" "EUC-CN" ' Eim-use-package
"Pinyin" "Chinese Pinyin Input Method" "Py.txt")
;;;; Under Windows and Mac, to set this ToolTip to nil, because these systems do not have GTK support, you can use the Minibuffer word selection when typing
;;;; Linux, the line is commented out, the input will automatically pop up at the input cursor at the ToolTip Word selection window
;;( SETQ eim-use-tooltip Nil)
;;;; Under the premise of activating Eim Chinese Input method, use Ctrl +; Temporarily input in English
(Require ' Eim-extra)
(Global-set-key (kbd "C;") ' Eim-insert-ascii)
-Demo
Finish.
Emacs using the Chinese plugin EIM