Don't load doom-modeline after init time.

This commit is contained in:
Vincent Zhang 2018-11-14 04:16:42 +08:00
parent 4f0f761738
commit 10b16b1386
2 changed files with 3 additions and 2 deletions

View file

@ -39,10 +39,11 @@ In `init.el`,
### Use-package
``` emacs-lisp
;; Don't load after init time.
(use-package doom-modeline
:ensure t
:defer t
:hook (after-init . doom-modeline-init))
:init (doom-modeline-init))
```
This package requires the fonts included with `all-the-icons` to be installed.

View file

@ -627,7 +627,7 @@ buffer where knowing the current project directory is important."
(add-hook 'find-file-hook #'doom-modeline-update-buffer-file-name)
(add-hook 'after-revert-hook #'doom-modeline-update-buffer-file-name)
(add-hook 'after-save-hook #'doom-modeline-update-buffer-file-name)
(advice-add #'select-window :after #'doom-modeline-update-buffer-file-name)
;; (advice-add #'select-window :after #'doom-modeline-update-buffer-file-name)
(doom-modeline-def-segment buffer-info
"Combined information about the current buffer, including the current working