Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.54 KB

README.org

File metadata and controls

43 lines (34 loc) · 1.54 KB

Spacemacs Literate Layering

https://img.shields.io/badge/license-GPL_3-green.svg https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg

Create new Spacemacs Layers with literate programming and Org tangling.

Installation

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")))
   ...)
 ...)

Usage

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.

Example

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.