ibus setting in emacs on Ubuntu 10.04

sudo add-apt-repository ppa:irie/elisp
sudo apt-get update
sudo apt-get install ibus-el
;;;; http://www11.atwiki.jp/s-irie/pages/21.html
(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 C-' to enable IBus
(global-set-key [(control ?')] 'ibus-enable)
;; Use C-; to disable IBus
(global-set-key [(control ?;)] 'ibus-disable)
;; Enable C-; key only for preediting
(ibus-define-common-key [(control ?;)] nil)
(ibus-define-preedit-key [(control ?;)] t)