From 5a2f94bc3258326e1bb3de41c11b93c24953795f Mon Sep 17 00:00:00 2001 From: kj Date: Sun, 7 Aug 2022 13:12:35 -0400 Subject: [PATCH] Change hooks to improve (a few) startup time. --- configs/base-extensions.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configs/base-extensions.el b/configs/base-extensions.el index a831188..354bf00 100644 --- a/configs/base-extensions.el +++ b/configs/base-extensions.el @@ -75,7 +75,9 @@ ;; :diminish flycheck-mode :defer t :straight t - :hook (after-init . global-flycheck-mode) ; Habilitar flycheck de manera global + :hook (prog-mode . (lambda () + (unless (derived-mode-p 'js-mode 'makefile-mode) + (flycheck-mode)))) ) ;; Mostrar los errores de flycheck en un pop up @@ -129,6 +131,7 @@ ;; Mecanografía (use-package speed-type + :defer t :straight t :diminish :config @@ -143,14 +146,14 @@ :bind (("C-" . origami-toggle-node) ("C-" . origami-toggle-all-nodes)) :hook - (after-init . global-origami-mode)) + (prog-mode . global-origami-mode)) ;; Pomodoro en emacs :D (use-package pomidor :defer t :straight t :bind ("" . pomidor) - :init + :config ;; (setq alert-default-style 'mode-line) (setq alert-default-style 'libnotify)