英文Ubuntu下Emacs 使用 ibus 五笔

Ubuntu 12.04 Precise 英文版本

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

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

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

2.修改locale

关于locale:

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

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

修改locale:

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

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切换五笔。

 

转载于:https://www.cnblogs.com/allbymyself/p/3426719.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值