blob: 5c0c61b303387221a93b2f08fdb9945d7fa2e310 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
(when *is-a-linux*
(setq fcitx-remote-command "fcitx5-remote")
(when (gx/maybe-require-package 'fcitx)
(add-hook 'after-init-hook 'fcitx-aggressive-setup)))
(when *is-a-mac*
(setq sis-external-ism "/usr/local/bin/macism")
(setq sis-english-source "com.apple.keylayout.ABC"
sis-other-source "com.apple.inputmethod.SCIM.ITABC")
(when (gx/maybe-require-package 'sis)
(add-hook 'after-init-hook
(lambda ()
(sis-global-respect-mode t)
(sis-global-context-mode t))))
(with-eval-after-load 'sis
(add-hook 'evil-insert-state-exit-hook 'sis-set-english)))
(provide 'init-input-method)
|