Emacs using the Chinese plugin EIM

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.