spacemacs/layers/+distributions/spacemacs-bootstrap
Lucius Hu 4836a2569b bootstrap: new :spacediminish keyword to use-package
Added a new keyword to `use-package`, `:spacediminish` which calls
`spacemacs|diminish`.

Supported patterns:
- nil
- SYMBOL
- STRING
- (SYMBOL STRING)
- (STRING STRING)
- (SYMBOL STRING STRING)
- List of patterns above

When `SYMBOL` is missing, it's inferred from the package name, e.g
`(use-package foo :spacediminish nil)` becomes
`(use-package foo :spacediminish foo-mode)`.

This PR aims to replace explict calls to `spacemacs|diminish` and brings more
declarative flavour to layer configuration.

For example, the following form

```elisp
(use-package highlight-indentation
  :config
  (progn
    (spacemacs|diminish highlight-indentation-mode " ⓗi" " hi")
    (spacemacs|diminish
     highlight-indentation-current-column-mode " ⓗc" " hc")))

```
can be replaced by

```elisp
(use-package highlight-indentation
  :spacediminish ((" ⓗi" " hi")
                  (highlight-indentation-current-column-mode " ⓗc" " hc")))
```
2021-04-08 19:08:13 +00:00
..
local Update header for year 2021 2021-03-25 22:59:32 -04:00
config.el Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
funcs.el bootstrap: new :spacediminish keyword to use-package 2021-04-08 19:08:13 +00:00
packages.el bootstrap: new :spacediminish keyword to use-package 2021-04-08 19:08:13 +00:00
README.org

spacemacs-bootstrap distribution

Description

This layer loads the necessary packages for spacemacs to start-up.

Features:

  • Loads evil key bindings and macros for auto-evilification of maps
  • Loads holy and hybrid modes
  • Loads the official Spacemacs theme
  • Loads use-package which is used to load other packages more easily
  • Loads hydra which is used to create transient modes
  • Loads which-key which is used to show key bindings in other modes
  • Loads async which is used to run background processes
  • Loads bind-map and bind-key which are used to realize various Spacemacs specific key binding commands