Skip to content

Commit d69d00d

Browse files
committed
tweak: faster loading by deferring some stuff
1 parent 8b22c5f commit d69d00d

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

core/me-completion.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
(use-package cape
1212
:straight t
13-
:after minemacs-loaded
13+
:after minemacs-first-file
1414
:demand t
15-
:init
15+
:preface
1616
(defcustom +cape-global-capes '(tempel-complete :completion cape-dict)
1717
"A list of global capes to be available at all times.
1818
The key `:completion' is used to specify where completion candidates should be

modules/me-emacs-lisp.el

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,10 @@
6666

6767
(use-package eros
6868
:straight t
69-
:after elisp-mode minemacs-loaded
70-
:demand t
69+
:hook (minemacs-first-elisp-file . eros-mode)
7170
:custom
7271
(eros-eval-result-prefix "―→ ")
7372
:config
74-
(eros-mode 1)
75-
7673
;; Add an Elisp-like evaluation for Octave
7774
(with-eval-after-load 'octave
7875
(defun +eros-octave-eval-last-sexp ()

modules/me-prog.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
(use-package evil-textobj-tree-sitter
6161
:straight (:host github :repo "meain/evil-textobj-tree-sitter" :files (:defaults "queries" "treesit-queries"))
6262
:unless (+package-disabled-p 'evil 'me-evil)
63-
:after evil
63+
:after evil minemacs-first-file
6464
:init
6565
;; Require the package on the first `prog-mode' file
6666
(+hook-once! prog-mode-hook (require 'evil-textobj-tree-sitter))

modules/me-ui.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
(use-package pulsar
8787
:straight t
88-
:hook (minemacs-after-startup . pulsar-global-mode)
88+
:hook (minemacs-first-file . pulsar-global-mode)
8989
:config
9090
(with-eval-after-load 'evil
9191
(setq pulsar-pulse-functions

0 commit comments

Comments
 (0)