chore(startup): Make various modules more lazy-loaded

This should improve startup speed a little bit.
This commit is contained in:
2020-03-15 02:44:46 +00:00
parent ac3f851a52
commit efecb5172c
22 changed files with 51 additions and 49 deletions

View File

@@ -8,7 +8,6 @@
(use-package hideshow
:straight (:type built-in)
:demand
:bind
("C-=" . siren-folding-toggle-selective-display)
@@ -19,8 +18,7 @@
"Activate or deactivate code folding.
Optional ARG is passed directly to mode toggle function."
(hs-minor-mode (or arg t))
(hideshowvis-minor-mode (or arg t)))
(if window-system (hideshowvis-minor-mode (or arg t))))
(defun siren-folding-toggle (column)
"Toggle hiding/showing blocks via hs-mode.
@@ -43,8 +41,7 @@ Borrowed from: http://www.emacswiki.org/emacs/HideShow"
(1+ (current-column)))))))
(use-package hideshowvis
:demand
:after hideshow)
:defer t)
(provide 'siren-folding)
;;; siren-folding.el ends here