Create new Spacemacs Layers with literate programming and Org tangling.
Add the following to dotspacemacs-additional-packages
in your dot-config file
(...
dotspacemacs-additional-packages
'((spacemacs-literate-layering
:location (recipe
:fetcher github
:repo "arifer612/spacemacs-literate-layering"
:files ("*.el" "layer.org.template" "library.org")))
...)
...)
Lazy-load the package by adding the following snippet within the user-config
section in your dot-config file
(use-package spacemacs-literate-layering
:after org
:commands (spacemacs-literate|create-layer)
:hook (org-mode . spacemacs-literate-layering-minor-mode))
With that, you can easily create a new layer by executing
M-x spacemacs-literate|create-layer
! All other private layers will also have
access to the Library of Babel nowebs.
For an example of how to write a Spacemacs layer using this package, you can refer to the example Org file that gets tangled into packages.el and layers.el in a manner that is completely compatible with Spacemacs.