aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-input-method.el
blob: 80c4a4d902fbc42002a98857c09818e9472ae9aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(when *is-a-linux*
  (setq fcitx-remote-command "fcitx5-remote")
  (when (gx/maybe-require-package 'fcitx)
    (add-hook 'after-init-hook 'fcitx-aggressive-setup 'append)))

(when *is-a-mac*
  (setq sis-external-ism "/usr/local/bin/macism"
        sis-english-source "com.apple.keylayout.ABC"
  	sis-other-source "com.apple.inputmethod.SCIM.ITABC")
  (when (gx/maybe-require-package 'sis)
    (sis-ism-lazyman-config sis-english-source sis-other-source)
    (sis-global-respect-mode t)
    (sis-global-context-mode t)
    (sis-global-inline-mode t)

    (add-hook 'evil-insert-state-exit-hook #'sis-set-english)))

(provide 'init-input-method)