Skip to content

Commit

Permalink
tweak(core): add minemacs-after-loading-modules-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jun 6, 2023
1 parent 3b4847d commit 0e4c53d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/me-vars.el
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ Compiled from the `system-configuration-features'.")
:group 'minemacs-ui
:type 'symbol)

(defcustom minemacs-after-loading-modules-hook nil
"This hook will be run after loading MinEmacs modules.
It is used internally to remove the `+use-package--check-if-disabled-a' advice
we set on `use-package' in `me-bootstrap'."
:group 'minemacs-core
:type 'hook)

(defcustom minemacs-after-set-fonts-hook nil
"Runs after setting MinEmacs fonts, runs at the end of `+set-fonts'."
:group 'minemacs-ui
Expand Down
2 changes: 2 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@
(mapcar (apply-partially #'format "%s%s.el" minemacs-modules-dir) minemacs-modules)))
(+load module-file))

(run-hooks 'minemacs-after-loading-modules-hook)

;; Write user custom variables to separate file instead of "init.el"
(setq custom-file (concat minemacs-config-dir "custom-vars.el"))

Expand Down

0 comments on commit 0e4c53d

Please sign in to comment.