updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / ibus-el / ibus-el.install
bloba98e7bde2b9186fff81fe2abedc4434389881375
1 #!/bin/sh
2 post_install() {
3 cat <<EOF
4 Add these stuff to you .emacs:
5 (require 'ibus)
6 ;; Turn on ibus-mode automatically after loading .emacs
7 (add-hook 'after-init-hook 'ibus-mode-on)
8 ;; Choose your key to toggle input status:
9 (global-set-key (kbd "C-\\\\") 'ibus-toggle)
10 Or if you use emacsclient, replace init-hook line by these:
11 (add-hook 'after-make-frame-functions
12 (lambda (new-frame)
13 (select-frame new-frame)
14 (or ibus-mode (ibus-mode-on))))
15 IMPORTANT!
16 Archlinux uses Python 3, so add this to your (custom-set-variables):
17 (custom-set-variables '(ibus-python-shell-command-name "python2"))
18 EOF
21 post_upgrade() {
22 post_install