You can use
emacs (22 or higher) by installing
sudo apt-get install ibus-el
There are instructions for setting it up at Ibus Mode. The instructions were written when
ibus-el was still a PPA, but the rest of it holds. Slightly updated instructions are also installed to
If you have installed
ibus-el, you can ignore most of the instructions. All you need to do is add the following lines to your
(add-hook 'after-init-hook 'ibus-mode-on)
Something not mentioned in the manual is that Ibus is not listed as in input method in Emacs even after installing
ibus-el. So there's no need to bother with
C-\. Just use the Ibus indicator on the menubar to switch input methods like you would with any other application.
Also, Ibus won't see an available input window immediately after Emacs has started. If you try to switch to a Chinese input method at that point using the Ibus indicator on the menu bar, nothing will happen and you might think it's not working. But just click in your file before trying to switch the input method (letting Ibus see the available edit window) and then menu bar indicator and Ibus work as normal.