Awesome leaf config collections.
Sample install code using leaf.el.
(leaf leaf-defaults
:ensure t
:config
(leaf-defaults-init))
This is a keyword that calls a dynamically named function.
If you define various settings for this function in a separate file, you may be able to reduce the number of lines in init.el. This is a one of use case of this.
Also, if you distribute the functions to be used, someone can use your recommended settings.
(cort-deftest-with-macroexpand leaf/defaults
'(((leaf helm
:ensure t
:defaults t)
(prog1 'helm
(leaf-handler-package helm helm nil)
(leaf-keywords-defaults--leaf/helm)))
((leaf helm
:when nil
:ensure t
:defaults t)
(prog1 'helm
(when nil
(leaf-handler-package helm helm nil)
(leaf-keywords-defaults--leaf/helm))))
((leaf helm
:ensure t
:defaults conao3)
(prog1 'helm
(leaf-handler-package helm helm nil)
(leaf-keywords-defaults--conao3/helm)))
((leaf helm
:ensure t
:defaults conao3 garario3)
(prog1 'helm
(leaf-handler-package helm helm nil)
(leaf-keywords-defaults--conao3/helm)
(leaf-keywords-defaults--garario3/helm)))
((leaf helm
:ensure t
:defaults conao3
:defaults garario3)
(prog1 'helm
(leaf-handler-package helm helm nil)
(leaf-keywords-defaults--conao3/helm)
(leaf-keywords-defaults--garario3/helm)))
((leaf helm
:ensure t
:defaults nil
:defaults conao3
:defaults garario3)
(prog1 'helm
(leaf-handler-package helm helm nil)))))
Any feedback or suggestions are welcome!
You can use github issues, but you can also use Slack if you want a more casual conversation.
We welcome PR!
- keg
cd ~/ hub clone conao3/keg .keg export PATH="$HOME/.keg/bin:$PATH"
Below operation flow is recommended.
git branch [feature-branch] # Create branch named [feature-branch]
git checkout [feature-branch] # Checkout branch named [feature-branch]
# <edit loop>
emacs leaf-defaults.el # Edit something you want
make test # Test leaf-defaults
git commit -am "brabra" # Commit (auto-run test before commit)
# </edit loop>
hub fork # Create fork at GitHub
git push [user] [feature-branch] # Push feature-branch to your fork
hub pull-request # Create pull-request
General Public License Version 3 (GPLv3) Copyright (c) Naoya Yamashita - https://conao3.com https://github.com/conao3/leaf-defaults.el/blob/master/LICENSE
- Naoya Yamashita (conao3)