Also defer helm loading on idle
This commit is contained in:
parent
a417e3ca85
commit
6a51d557da
|
@ -20,9 +20,10 @@
|
|||
|
||||
(defconst spacemacs-dump-buffer-name "*spacemacs-dumper*")
|
||||
|
||||
(defun spacemacs/defer ()
|
||||
"Return non-nil if dump is not supported."
|
||||
(eq 'not-dumped spacemacs-dump-mode))
|
||||
(defun spacemacs/defer (&optional idle-time)
|
||||
"Return t or IDLE-TIME when Spacemacs is not running from a dump."
|
||||
(when (eq 'not-dumped spacemacs-dump-mode)
|
||||
(or idle-time t)))
|
||||
|
||||
(defmacro spacemacs|require (&rest args)
|
||||
"Require feature if dumping."
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
|
||||
(defun helm/init-helm ()
|
||||
(use-package helm
|
||||
:defer (spacemacs/defer)
|
||||
:defer (spacemacs/defer 1)
|
||||
:init
|
||||
(progn
|
||||
(spacemacs|add-transient-hook pre-command-hook
|
||||
|
|
Loading…
Reference in New Issue