source: projects/specs/trunk/i/ibus-el/vine-default-ibus-el.el @ 3305

Revision 3305, 2.3 KB checked in by iwaim, 13 years ago (diff)

ibus-el-0.2.1-2: fix <BTS:VineLinux:1117>

Line 
1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2;;  -*- coding: utf-8-unix -*-
3;;  FSF Emacs 23 用 Vine Linux ibus-el 設定
4;;    IWAI, Masaharu <iwai@alib.jp>
5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
8;; ibus-el の設定
9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
10
11(if (or (equal emacs-ime "ibus-el")
12        (equal emacs-ime "IBus-el"))
13     (progn
14       (require 'ibus)
15
16       ;; Turn on ibus-mode automatically loading after-vine-default-setup-hook
17       (if (boundp 'after-vine-default-setup-hook) ;;; for Vine5
18           (add-hook 'after-vine-default-setup-hook 'ibus-mode-on)
19         (add-hook 'after-init-hook 'ibus-mode-on))
20
21       ;; define ibus-el-agent path
22       (setq ibus-agent-file-name "/usr/share/ibus-el/ibus-el-agent")
23
24       ;; Use C-SPC for Set Mark command
25       (ibus-define-common-key ?\C-\s nil)
26       
27       ;; Toggle input status by Ctrl + \
28       (global-set-key "\C-\\" 'ibus-toggle)
29
30       ;; Use henkan key to enable IBus
31       (global-set-key [henkan] 'ibus-enable)
32       ;; Use muhenkan key to disable IBus
33       (global-set-key [muhenkan] 'ibus-disable)
34       ;; Enable muhenkan key only for preediting
35       (ibus-define-common-key 'muhenkan nil)
36       (ibus-define-preedit-key 'muhenkan t)
37
38       ;; Use C-/ for Undo command
39       (ibus-define-common-key ?\C-/ nil)
40
41       ;; Change cursor color depending on IBus status
42       (setq ibus-cursor-color '("red" "blue" "limegreen"))
43
44       ;; Using ibus-anthy
45       ;; To toggle half-width eisu mode by C-j, add the following to .emacs:
46       (ibus-define-common-key ?\C-j t)
47
48       ;; To use kana input method with jp106 keyboard, you can enable kana
49       ;; onbiki key as follows:
50       (setq ibus-use-kana-onbiki-key t)
51
52       ;; If you use thumb shift input method, you have to specify the
53       ;; simultaneous pressing time as:
54       (setq ibus-ibus-simultaneous-pressing-time 0.1)
55
56       ;; Using ibus-chewing
57       ;; Please set input style to "in application window" in ibus-chewing's
58       ;; configuration dialog.
59       )
60  )
61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
62(provide 'vine-default-ibus-el)
63
64;; Local Variables:
65;; mode: emacs-lisp
66;; End:
Note: See TracBrowser for help on using the repository browser.