diff options
Diffstat (limited to '.emacs.d/lisp/init-input-method.el')
-rw-r--r-- | .emacs.d/lisp/init-input-method.el | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/.emacs.d/lisp/init-input-method.el b/.emacs.d/lisp/init-input-method.el index 8c007bc..157c632 100644 --- a/.emacs.d/lisp/init-input-method.el +++ b/.emacs.d/lisp/init-input-method.el @@ -1,27 +1,20 @@ (when *is-a-linux* - (use-package fcitx - :ensure t - :init - (setq fcitx-remote-command "fcitx5-remote") - :config - (fcitx-aggressive-setup))) + (use-package fcitx :ensure t :defer t) + (setq fcitx-remote-command "fcitx5-remote") + (fcitx-aggressive-setup)) (when *is-a-mac* - (use-package sis - :ensure t - :after (evil) - :init - (setq sis-external-ism "/usr/local/bin/macism") - (setq sis-english-source "com.apple.keylayout.ABC" - sis-other-source "com.apple.inputmethod.SCIM.ITABC") - (setq sis-do-set - (lambda (source) (start-process "set-input-source" nil - sis-external-ism source))) - (setq sis-do-get - (lambda () (start-process "get-input-source" nil - sis-external-ism))) - :config - (sis-global-respect-mode t) - (sis-global-context-mode t))) + (use-package sis :ensure t :defer t) + (setq sis-external-ism "/usr/local/bin/macism") + (setq sis-english-source "com.apple.keylayout.ABC" + sis-other-source "com.apple.inputmethod.SCIM.ITABC") + (setq sis-do-set + (lambda (source) (start-process "set-input-source" nil + sis-external-ism source))) + (setq sis-do-get + (lambda () (start-process "get-input-source" nil + sis-external-ism))) + (sis-global-respect-mode t) + (sis-global-context-mode t)) (provide 'init-input-method) |