首页 > 代码库 > (转)解决emacs中切换输入法冲突

(转)解决emacs中切换输入法冲突

转自:http://blog.sina.com.cn/s/blog_a04f0d1c0101bwk1.html

1.安装ibus-el:sudo apt-get install ibus-el

2.将如下内容添加至~/.emacs
(require ‘ibus)
;; Turn on ibus-mode automatically after loading .emacs
(add-hook ‘after-init-hook ‘ibus-mode-on)
;; Use C-SPC to toggle input status
(global-set-key (kbd "C-SPC") ‘ibus-toggle)
;; Use s-SPC to set mark
(global-set-key (kbd "s-SPC") ‘set-mark-command)

(转)解决emacs中切换输入法冲突