Skip to content

Update documentation for layer dependencies declaration #16406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/LAYERS.org
Original file line number Diff line number Diff line change
Expand Up @@ -289,20 +289,20 @@ path for you.

** layers.el
This file is the first file to be loaded and this is the place where additional
layers can be declared.
layers can be declared as dependencies.

For instance, if layer A depends on some functionality of layer B, then in the
file =layers.el= of layer A, we can add:

#+BEGIN_SRC emacs-lisp
(configuration-layer/declare-layer 'B)
(configuration-layer/declare-layer-dependencies '(B))
#+END_SRC

The effect is that B is considered a used layer and will be loaded as if it
was added to =dotspacemacs-configuration-layers= variables.

** packages.el
It contains this list of packages of the layer and the actual configuration for
It contains the list of packages of the layer and the actual configuration for
the packages included in the layer.

This file is loaded after =layers.el=.
Expand Down
Loading