Defer to load the input-method and clang-format packages (#15878)
This commit is contained in:
parent
290d873f91
commit
84d649ac2e
|
@ -52,6 +52,7 @@
|
||||||
(defun chinese/init-pyim ()
|
(defun chinese/init-pyim ()
|
||||||
(use-package pyim
|
(use-package pyim
|
||||||
:if chinese-default-input-method
|
:if chinese-default-input-method
|
||||||
|
:defer t
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
(setq pyim-page-tooltip t
|
(setq pyim-page-tooltip t
|
||||||
|
@ -69,6 +70,7 @@
|
||||||
"Initialize pyim-basedict"
|
"Initialize pyim-basedict"
|
||||||
(use-package pyim-basedict
|
(use-package pyim-basedict
|
||||||
:if (eq chinese-default-input-method 'pinyin)
|
:if (eq chinese-default-input-method 'pinyin)
|
||||||
|
:defer t
|
||||||
:config
|
:config
|
||||||
(pyim-basedict-enable)))
|
(pyim-basedict-enable)))
|
||||||
|
|
||||||
|
@ -76,6 +78,7 @@
|
||||||
"Initialize pyim-wbdict"
|
"Initialize pyim-wbdict"
|
||||||
(use-package pyim-wbdict
|
(use-package pyim-wbdict
|
||||||
:if (member chinese-default-input-method '(wubi wubi86 wubi98))
|
:if (member chinese-default-input-method '(wubi wubi86 wubi98))
|
||||||
|
:defer t
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq pyim-default-scheme 'wubi)
|
(setq pyim-default-scheme 'wubi)
|
||||||
|
@ -86,7 +89,7 @@
|
||||||
(defun chinese/init-youdao-dictionary ()
|
(defun chinese/init-youdao-dictionary ()
|
||||||
(use-package youdao-dictionary
|
(use-package youdao-dictionary
|
||||||
:if chinese-enable-youdao-dict
|
:if chinese-enable-youdao-dict
|
||||||
:defer
|
:defer t
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
;; Enable Cache
|
;; Enable Cache
|
||||||
|
|
|
@ -107,6 +107,7 @@
|
||||||
|
|
||||||
(defun c-c++/init-clang-format ()
|
(defun c-c++/init-clang-format ()
|
||||||
(use-package clang-format
|
(use-package clang-format
|
||||||
|
:defer t
|
||||||
:init (spacemacs//c-c++-setup-clang-format)))
|
:init (spacemacs//c-c++-setup-clang-format)))
|
||||||
|
|
||||||
(defun c-c++/post-init-company ()
|
(defun c-c++/post-init-company ()
|
||||||
|
|
Loading…
Reference in New Issue