diff options
author | Guangxiong Lin <[email protected]> | 2022-03-13 01:12:32 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-13 01:12:32 +0800 |
commit | 36081c6ca6b25fd9c49c259d91ada5180d78a580 (patch) | |
tree | c7778697e0d3aa76f28a4c24404018953afc27eb /.emacs.d/lisp/init-input-method.el | |
parent | 38ab771977e6511d02df06cb908824707d728303 (diff) | |
download | dotfiles-36081c6ca6b25fd9c49c259d91ada5180d78a580.tar.gz dotfiles-36081c6ca6b25fd9c49c259d91ada5180d78a580.tar.bz2 dotfiles-36081c6ca6b25fd9c49c259d91ada5180d78a580.zip |
Drop use-package at all (emacs)
Diffstat (limited to '.emacs.d/lisp/init-input-method.el')
-rw-r--r-- | .emacs.d/lisp/init-input-method.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/.emacs.d/lisp/init-input-method.el b/.emacs.d/lisp/init-input-method.el index 157c632..d9390b2 100644 --- a/.emacs.d/lisp/init-input-method.el +++ b/.emacs.d/lisp/init-input-method.el @@ -1,10 +1,9 @@ (when *is-a-linux* - (use-package fcitx :ensure t :defer t) (setq fcitx-remote-command "fcitx5-remote") - (fcitx-aggressive-setup)) + (when (gx/maybe-require-package 'fcitx) + (add-hook 'after-init-hook 'fcitx-aggressive-setup))) (when *is-a-mac* - (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") @@ -14,7 +13,10 @@ (setq sis-do-get (lambda () (start-process "get-input-source" nil sis-external-ism))) - (sis-global-respect-mode t) - (sis-global-context-mode t)) + (when (gx/maybe-require-package 'sis) + (add-hook 'after-init-hook + (lambda () + (sis-global-respect-mode t) + (sis-global-context-mode t))))) (provide 'init-input-method) |