The related problems of Emacs Chinese recognition and Chinese input method

Source: Internet
Author: User
Tags locale
You've just started using Emacs, but when you see a previous document, there are two issues: 1. Unable to recognize the previous document's Chinese 2. Unable to switch to Chinese into the French Open to see a lot of tutorials, found that many have a little trouble, after a while groping, found that the problem can be easily solved.
Solve the Chinese identification problem: First, use the command locale to view locale settings (the following figure is the one I have corrected):


Change the environment variable directly; see what environment you use, if it is used in the current environment (the current user in this article is Tian), then execute the following command: Export lc_ctype= "ZH_CN. UTF-8 "
If this is the root user, perform the same operation. However, it should be noted that the modification is only valid for the current user environment. In other words, for example, you have modified the Lc_ctppe under the Tian user, then the root user or unmodified, you need to repair the changes.
Solve the problem of input method: about Emacs Environment, can't switch to Chinese input method because the CTRL + Space in Emacs defines the function, we just need to remove this shortcut binding. Locate the initialization configuration file for Emacs under Unbuntu. Note that it's not. emacs files like this ... There is no need to create a file like this. Some of the methods I found before were copied to copy, so we all wrote the same thing, and most of them were looking for. emacs file. The configuration file for Emacs in my Ubuntu system is:/etc/emacs/site-start.d/00debian-vars.el add a command at the end of the configuration file: (Global-unset-key (kbd "C-SPC")
Complete... It's so simple ...

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.