Skip to content

Commit db2240b

Browse files
committed
[emacs] Use :hook to speed up start up time
1 parent e1bcf75 commit db2240b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.emacs.d/bootstrap.org

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,10 @@ Parrot mode FTW!
139139

140140
(use-package parrot
141141
:ensure t
142+
:hook
143+
(elpaca-after-init . parrot-mode)
144+
(before-save . parrot-start-animation)
142145
:config
143-
(parrot-mode)
144-
(add-hook 'before-save-hook 'parrot-start-animation)
145146
(add-to-list 'compilation-finish-functions 'my/parrot-animate-when-compile-success))
146147
#+END_SRC
147148

@@ -438,8 +439,8 @@ Use ~auto-fill-mode~ only for comments and only with programming buffers
438439
#+BEGIN_SRC emacs-lisp
439440
(use-package editorconfig
440441
:ensure nil
441-
:config
442-
(editorconfig-mode 1))
442+
:hook
443+
(elpaca-after-init . editorconfig-mode))
443444
#+END_SRC
444445

445446
** Snippets
@@ -959,8 +960,8 @@ Hide values that match regex patterns for ~restclient~ files
959960
(cloak-mode-patterns '((restclient-mode . "^:[^: ]+[ \t]*=[ \t]*\\(.+?\\)$")
960961
("mise.local.toml" . "[a-zA-Z_-]+[ \t]*=[ \t]*\"\\([^\"]+\\)\"")))
961962
(cloak-mode-mask "🙈🙈🙈")
962-
:config
963-
(global-cloak-mode))
963+
:hook
964+
(elpaca-after-init . global-cloak-mode))
964965
#+end_src
965966

966967
** Avy

0 commit comments

Comments
 (0)