Ubuntu下Emacs不能使用输入法的解决办法
执行以下操作:
sudo add-apt-repository ppa:irie/elisp
sudo apt-get update
and install ibus-el package:
sudo apt-get install ibus-el
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"))
;; Use s-SPC to toggle input status
(global-set-key (kbd "s-SPC") 'ibus-toggle)
重启emacs
M-x ibus-enable即可
相关推荐
kekenow 2020-06-02
Watanuki00 2020-05-31
kekenow 2020-05-27
applecarelte 2020-05-17
hell0kitty 2020-05-06
严谨死板君 2020-04-26
猫师 2020-03-16
Watanuki00 2020-02-19
nixebo 2020-02-02
Watanuki00 2020-01-31
Watanuki00 2019-11-18
kekenow 2019-10-22
Jouen 2011-09-18
DeanChen 2012-02-21
nixebo 2019-04-04
御前带刀侍卫 2014-12-19
suncrx 2014-12-12
robertzhouxh 2014-03-10