Skip to content

conao3/leaf-defaults.el

Repository files navigation

https://raw.githubusercontent.com/conao3/files/master/blob/headers/png/leaf-defaults.el.png https://img.shields.io/github/license/conao3/leaf-defaults.el.svg?style=flat-square https://img.shields.io/github/tag/conao3/leaf-defaults.el.svg?style=flat-square https://github.com/conao3/leaf-defaults.el/workflows/Main%20workflow/badge.svg https://img.shields.io/codacy/grade/62a36f4f04524d5e8c758440e8071c45.svg?logo=codacy&style=flat-square https://img.shields.io/badge/patreon-become%20a%20patron-orange.svg?logo=patreon&style=flat-square https://img.shields.io/badge/twitter-@conao__3-blue.svg?logo=twitter&style=flat-square https://img.shields.io/badge/chat-on_slack-blue.svg?logo=slack&style=flat-square

Table of Contents

Description

Awesome leaf config collections.

Install

Sample install code using leaf.el.

(leaf leaf-defaults
  :ensure t
  :config
  (leaf-defaults-init))

Usage

:defaults keyword

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

Information

Community

Any feedback or suggestions are welcome!

You can use github issues, but you can also use Slack if you want a more casual conversation.

Contribution

We welcome PR!

Require tools for testing

  • keg
    cd ~/
    hub clone conao3/keg .keg
    export PATH="$HOME/.keg/bin:$PATH"
        

Running test

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

Migration

License

General Public License Version 3 (GPLv3)
Copyright (c) Naoya Yamashita - https://conao3.com
https://github.com/conao3/leaf-defaults.el/blob/master/LICENSE

Author

Contributors

About

'Leaf' of settings for Emacs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published