sudo yum install emacs-ibus-el.noarch -yAdd these two lines in .emacs
(require 'ibus)kill all ibus instances if ran, i.e.,
(add-hook 'after-init-hook 'ibus-mode-on)
ps -u your-user-name |grep ibusStart ibus-daemon.
kill -9 the-number-listed-above
Start Emacs
IBus has now an English typing booster. I tried, no advantage at the moment. It may needs a lot of training.
在Fedora18中输入法的上面所述方法作废。如果使用gnome,正确的方法是点右上角用户,然后点 System Settings,接下来点Region & Languages,再点Input Sources的Tab增加输入法。然后在其右侧设置下一个输入法的快捷键。
前一段适合Fedora近期版本。在Ubuntu 12.04 LTS 中以上仍不适用, 此时可参考 http://www.emacswiki.org/emacs/IBusMode。
- sudo apt-get install ibus.el
- copy the following codes in ~/.emacs
然后(require 'ibus) ;; Turn on ibus-mode automatically after loading .emacs (add-hook 'after-init-hook 'ibus-mode-on) ;; Use C-SPC for Set Mark command (ibus-define-common-key ?\C-\s nil) ;; Use C-/ for Undo command (ibus-define-common-key ?\C-/ nil) ;; Change cursor color depending on IBus status (setq ibus-cursor-color '("red" "blue" "limegreen"))
没有评论:
发表评论