doomemacs/lisp
Henrik Lissner 7a2be67efa
refactor!: redesign module init/config hooks
BREAKING CHANGE: For consistency and correctness, I've renamed the
module init/config hooks, and added new ones:

- Adds doom-before-modules-config-hook
- Adds doom-after-modules-config-hook (replaced doom-before-init-modules-hook)
- Adds doom-before-modules-init-hook
- Adds doom-after-modules-init-hook (replaced doom-init-modules-hook)
- Removed doom-after-init-modules-hook (replaced w/ after-init-hook)

The old naming (and timing) was counterintuitive. Now, it's named after
the loaded file group (init.el vs config.el), and I added before/after
variants. Altogether, this should make them less ambiguous.

I've also moved some functions in various modules to more correct hooks.

Load order before this change:
- $EMACSDIR/early-init.el
- $EMACSDIR/lisp/doom.el
- $EMACSDIR/lisp/doom-start.el
- $DOOMDIR/init.el
- {$DOOMDIR,~/.emacs.d}/modules/*/*/init.el
- `doom-before-init-modules-hook'
- {$DOOMDIR,~/.emacs.d}/modules/*/*/config.el
- `doom-init-modules-hook'
- $DOOMDIR/config.el
- `doom-after-init-modules-hook'
- `after-init-hook'
- `emacs-startup-hook'
- `window-setup-hook'

Load order after this change:
- $EMACSDIR/early-init.el
- $EMACSDIR/lisp/doom.el
- $EMACSDIR/lisp/doom-start.el
- $DOOMDIR/init.el
- `doom-before-modules-init-hook'
- {$DOOMDIR,~/.emacs.d}/modules/*/*/init.el
- `doom-after-modules-init-hook'
- `doom-before-modules-config-hook'
- {$DOOMDIR,~/.emacs.d}/modules/*/*/config.el
- `doom-after-modules-config-hook'
- $DOOMDIR/config.el
- `after-init-hook'
- `emacs-startup-hook'
- `window-setup-hook'
2022-09-16 01:14:22 +02:00
..
cli refactor: register :core & :user as virtual modules 2022-09-16 01:14:22 +02:00
lib refactor!: redesign module init/config hooks 2022-09-16 01:14:22 +02:00
doom-cli.el refactor(cli,lib): print levels & output redirection 2022-09-16 01:14:20 +02:00
doom-editor.el nit: comment revision and formatting 2022-09-16 01:14:22 +02:00
doom-keybinds.el refactor!: redesign module init/config hooks 2022-09-16 01:14:22 +02:00
doom-lib.el refactor(lib): use uninterned symbols for transient/chained hooks 2022-09-16 01:14:21 +02:00
doom-modules.el refactor!: redesign module init/config hooks 2022-09-16 01:14:22 +02:00
doom-packages.el refactor: change doom-module-list signature 2022-09-16 01:14:21 +02:00
doom-projects.el nit: comment revision and formatting 2022-09-16 01:14:22 +02:00
doom-start.el perf: add additional startup optimizations 2022-09-16 01:14:22 +02:00
doom-ui.el nit: comment revision and formatting 2022-09-16 01:14:22 +02:00
doom.el refactor!: redesign module init/config hooks 2022-09-16 01:14:22 +02:00
packages.el bump: :core 2022-09-06 22:55:47 +02:00