歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu下Emacs不能使用輸入法的解決辦法

Ubuntu下Emacs不能使用輸入法的解決辦法

日期:2017/2/28 16:21:59   编辑:Linux教程

執行以下操作:

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即可

Copyright © Linux教程網 All Rights Reserved