[Ubuntu related] emacs solves Chinese in various English Operating Systems

Source: Internet
Author: User
Finally, I learned how to input Chinese in the English system. Of course, it is input to emacs. Here, I use Ubuntu, which is in Windows. Because the method is relatively simple, I am a little confused. Of course, the details are always good and will be convenient for reference in the future. This is the simplest method I have found, because I like simple principles. Of course, if the readers like the built-in methods, I think they can, that is, the efficiency is relatively low. If you do not enter a lot of text, it is also good as a temporary solution. In Windows, I download

Finally, I learned how to input Chinese in the English system. Of course, it is input to emacs. Here, I use Ubuntu, which is in Windows. Because the method is relatively simple, I am a little confused. Of course, the details are always good and will be convenient for reference in the future.

This is the simplest method I have found, because I like simple principles. Of course, if the readers like the built-in methods, I think they can, that is, the efficiency is relatively low. If you do not enter a lot of text, it is also good as a temporary solution.

In Windows, the latest emacs version I have downloaded is 22.3. Later versions will not support Chinese characters even worse.

After countless experiments, I finally found a secret, that is, turning the locale of the system into a change of Chinese-China. Then all input methods can be used. I prefer the Google input method, because it is similar to the input method in Linux. Other methods have not been tested successfully.

Because the work needs to be completed in Visual Studio, I found that VS2008 also has the emacs keyboard option! This is a good news for programmers. It seems that in the minds of programmers, emacs is not old.

In Linux, we must first ensure that the Chinese environment of the system must be installed properly. In fact, Ubuntu is very convenient now. You only need to check Chinese support. In this way, we can use scim without any settings. This is the default input method. However, I found that this input method does not support emacs very well. So we install fcitx. This is what we need.

Next is the configuration. It is not complicated at all. Run the fcitx input method before using emacs.

Fcitx &

In ~ /. Add a line to the emacs file to shield the C-SPC

; Inhibit C-SPC for SCIM

(Global-set-key (kbd "C-SPC") 'nil)

The last step is to set environment variables. This step is the most important thing to do with Windows systems.

Export LC_CTYPE = zh_CN.UTF-8

Now you can run it. Of course this is quite troublesome, but after all, it still feels good to be able to input Chinese characters.

Related Article

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.