英文Ubuntu下Emacs 使用 ibus 五笔

Ubuntu 12.04 Precise 英文版本shell

1. 安装ibus/安装ibus-table-wubiubuntu

http://wiki.ubuntu.org.cn/IBussession

其中im-switch命令要在普通用户上使用,即不带sudospa

2.修改localerest

关于locale:code

http://wiki.ubuntu.org.cn/Locale blog

(关键point:若是你只想要一个能够输入中文的环境,而保持菜单、标题,系统信息等等为英文界面,那么只须要设定LC_CTYPE=zh_CN.XXXX)ci

修改locale:get

http://wiki.ubuntu.org.cn/%E4%BF%AE%E6%94%B9localeemacs

sudo gedit /etc/default/locale
添加:
LC_CTYPE="zh_CN.UTF-8"

3.安装emacs

sudo apt-get install emacs

 

4.Disabling XIM

http://www.emacswiki.org/emacs/IBusMode

If XIM is enabled, key events are directly handled by IBus so  ibus.el can’t work.
To disable XIM in Emacs, put the following in  ~/.Xresources file:
        Emacs*useXIM: false
and restart X session or execute a shell command:
        xrdb ~/.Xresources

从新注销登入,便可用Ctrl+space切换五笔。

相关文章
相关标签/搜索