From 872287147bc5b4e1828f963ad99bcddfb183ab69 Mon Sep 17 00:00:00 2001 From: Justin Smestad Date: Fri, 15 Jun 2018 09:18:51 -0600 Subject: [PATCH] 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 --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 46c38e2..4321e46 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,23 @@ In `init.el`, (use-package doom-modeline :ensure 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. 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 ![modeline](https://github.com/hlissner/doom-emacs/raw/screenshots/ml.png)