Change hooks to improve (a few) startup time.

This commit is contained in:
kj 2022-08-07 13:12:35 -04:00
parent ef6bbf94f7
commit 5a2f94bc32

View File

@ -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-<tab>" . origami-toggle-node)
("C-<iso-lefttab>" . 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 ("<f12>" . pomidor)
:init
:config
;; (setq alert-default-style 'mode-line)
(setq alert-default-style 'libnotify)