Last edit
Summary: s-SPC -> S-SPC
Changed:
< ;; Use s-SPC to toggle input status
to
> ;; Use S-SPC to toggle input status
Changed:
< (global-set-key (kbd "s-SPC") 'ibus-toggle)
to
> (global-set-key (kbd "S-SPC") 'ibus-toggle)
ibus.el is IBus client for GNU Emacs.
ibus.el provides ibus-mode minor mode, which allows users on-the-spot style input with IBus on Emacs. The input statuses are individually kept for each buffer, and prefix-keys such as C-x and C-c can be used even if IBus is active. So you can input various languages fast and comfortably.
ibus.el from ibus.el project in Launchpadibus-el package from PPA for Irie's Elispibus.el and byte-compile in a directory that is listed in load-path, and save ibus-el-agent somewhere in your system. (require 'ibus)
(add-hook 'after-init-hook 'ibus-mode-on)ibus.el and ibus-el-agent are saved in different directories, add a setting to the above as follows:(setq ibus-agent-file-name "/PATH/TO/ibus-el-agent")
ppa:irie/elisp to software sources: sudo add-apt-repository ppa:irie/elisp
sudo apt-get updateibus-el package:sudo apt-get install ibus-el
(require 'ibus)
(add-hook 'after-init-hook 'ibus-mode-on)ibus.el can’t work.~/.Xresources file:Emacs*useXIM: false
xrdb ~/.Xresources
.emacs file: (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"))(add-hook 'after-make-frame-functions (lambda (new-frame) (select-frame new-frame) (or ibus-mode (ibus-mode-on))))
;; Use S-SPC to toggle input status
(ibus-define-common-key ?\S-\s nil)
(global-set-key (kbd "S-SPC") 'ibus-toggle)(ibus-define-common-key ?\C-j t)
(setq ibus-use-kana-onbiki-key t)
(setq ibus-ibus-simultaneous-pressing-time 0.1)