mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Update use-package definition
* Instead of overriding `:init` handler, use `:hook` instead. * Add `:requires` (can also be `:after` if you prefer that) * Adding `all-the-icons` to the handler causes the package to not load, not sure why. * Add example with use-package to install dependencies
This commit is contained in:
parent
7498b4879e
commit
872287147b
1 changed files with 12 additions and 1 deletions
13
README.md
13
README.md
|
@ -33,12 +33,23 @@ In `init.el`,
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:ensure t
|
:ensure t
|
||||||
:defer t
|
:defer t
|
||||||
:init (add-hook 'after-init-hook #'doom-modeline-init))
|
:requires (shrink-path eldoc-eval)
|
||||||
|
:hook (after-init . doom-modeline-init))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
This package requires the fonts included with `all-the-icons` to be installed.
|
This package requires the fonts included with `all-the-icons` to be installed.
|
||||||
Run `M-x all-the-icons-install-fonts` to do so.
|
Run `M-x all-the-icons-install-fonts` to do so.
|
||||||
|
|
||||||
|
If you do not have them already installed, here are the dependencies:
|
||||||
|
|
||||||
|
``` emacs-lisp
|
||||||
|
(use-package shrink-path)
|
||||||
|
(use-package all-the-icons)
|
||||||
|
(use-package eldoc-eval)
|
||||||
|
```
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
![modeline](https://github.com/hlissner/doom-emacs/raw/screenshots/ml.png)
|
![modeline](https://github.com/hlissner/doom-emacs/raw/screenshots/ml.png)
|
||||||
|
|
Loading…
Reference in a new issue