Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yk-kd committed Jun 8, 2024
1 parent 46993eb commit 6770543
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- [[#feather-keyword][:feather keyword]]
- [[#el-get-keyword][:el-get keyword]]
- [[#straight-keyword][:straight keyword]]
- [[#elpaca-keyword][:elpaca keyword]]
- [[#ensure-system-package-keyword][:ensure-system-package keyword]]
- [[#bind-keywords][Bind keywords]]
- [[#bind-bind-keywords][:bind, :bind* keywords]]
Expand Down Expand Up @@ -438,6 +439,100 @@ Given a list, the arguments are passed as is to ~straight-use-package~.
(leaf-init)))))
#+end_src

** :elpaca keyword
~:eplaca~ provides a frontend for ~elpaca~.

If you specify ~t~, leaf assumes that you specified the name of the leaf-block.

Given a list, the arguments are passed as is to ~elpaca~.

#+begin_src elisp
(cort-deftest-with-macroexpand leaf/elpaca
'(((leaf leaf
:init (leaf-pre-init)
:elpaca t
:config (leaf-init))
(prog1 'leaf
(elpaca 'leaf
(leaf-pre-init)
(leaf-init))))

((leaf leaf
:init (leaf-pre-init)
:elpaca nil t
:config (leaf-init))
(prog1 'leaf
(leaf-pre-init)
(leaf-init)))

((leaf leaf
:init (leaf-pre-init)
:elpaca leaf leaf-polyfill
:config (leaf-init))
(prog1 'leaf
(elpaca 'leaf)
(elpaca 'leaf-polyfill
(leaf-pre-init)
(leaf-init))))

((leaf leaf
:init (leaf-pre-init)
:elpaca t
:elpaca leaf-polyfill
:config (leaf-init))
(prog1 'leaf
(elpaca 'leaf)
(elpaca 'leaf-polyfill
(leaf-pre-init)
(leaf-init))))

((leaf leaf
:init (leaf-pre-init)
:elpaca t leaf-polyfill
:config (leaf-init))
(prog1 'leaf
(elpaca 'leaf)
(elpaca 'leaf-polyfill
(leaf-pre-init)
(leaf-init))))

((leaf leaf
:init (leaf-pre-init)
:elpaca (zenburn-theme :host github :repo "fake/fake")
:config (leaf-init))
(prog1 'leaf
(elpaca '(zenburn-theme :host github :repo "fake/fake")
(leaf-pre-init)
(leaf-init))))

((leaf leaf
:init (leaf-pre-init)
:elpaca
(zenburn-theme :host github :repo "fake/fake")
(yaicomplete :host github :repo "fake/faker")
(mew :host gitlab :repo "fake/fakest")
:config (leaf-init))
(prog1 'leaf
(elpaca '(zenburn-theme :host github :repo "fake/fake"))
(elpaca '(yaicomplete :host github :repo "fake/faker"))
(elpaca '(mew :host gitlab :repo "fake/fakest")
(leaf-pre-init)
(leaf-init))))))
#+end_src

Nesting is not recommended in elpaca.
If nesting is used, please specify them together in the first leaf block.
#+begin_src elisp
(leaf leaf
:elpaca leaf leaf-polyfill
:config
(leaf-init)
(leaf leaf-polyfill
:elpaca nil
:config
(leaf-polyfill-init)))
#+end_src

** :ensure-system-package keyword
~:ensure-system-package~ provides a frontend for [[https://gitlab.com/jabranham/system-packages][system-packages]].

Expand Down

0 comments on commit 6770543

Please sign in to comment.