doomemacs/lisp/lib
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
..
buffers.el refactor: replace doom-enlist with ensure-list 2022-08-07 19:43:13 +02:00
config.el refactor: move doom-*-reload-hook to lib/config.el 2022-09-06 22:55:47 +02:00
debug.el refactor: change doom-module-list signature 2022-09-16 01:14:21 +02:00
docs.el refactor(docs): move doom-docs-dir to lib/docs.el 2022-08-14 20:43:36 +02:00
files.el fix(lib): void-function insert-into-buffer on Emacs 27 2022-09-16 01:14:20 +02:00
fonts.el refactor!: restructure Doom core 2022-07-30 22:41:13 +02:00
git.el refactor(lib): provide doom-libs as subfeatures 2022-09-08 00:20:26 +02:00
help.el refactor: change doom-module-list signature 2022-09-16 01:14:21 +02:00
packages.el refactor: register :core & :user as virtual modules 2022-09-16 01:14:22 +02:00
plist.el refactor(lib): provide doom-libs as subfeatures 2022-09-08 00:20:26 +02:00
print.el refactor(lib): use ansi-color-apply 2022-09-16 01:14:21 +02:00
process.el refactor(lib): provide doom-libs as subfeatures 2022-09-08 00:20:26 +02:00
projects.el refactor!: restructure Doom core 2022-07-30 22:41:13 +02:00
sandbox.el refactor!: redesign module init/config hooks 2022-09-16 01:14:22 +02:00
scratch.el refactor: deprecate doom-etc-dir for doom-data-dir 2022-08-14 20:43:35 +02:00
sessions.el refactor!: restructure Doom core 2022-07-30 22:41:13 +02:00
store.el refactor: deprecate doom-etc-dir for doom-data-dir 2022-08-14 20:43:35 +02:00
system.el refactor(lib): use num-processors 2022-09-08 13:36:17 +02:00
text.el refactor: replace doom-enlist with ensure-list 2022-08-07 19:43:13 +02:00
themes.el refactor: replace doom-enlist with ensure-list 2022-08-07 19:43:13 +02:00
ui.el refactor!: restructure Doom core 2022-07-30 22:41:13 +02:00