mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-24 03:00:10 +00:00
Don't load doom-modeline after init time.
This commit is contained in:
parent
4f0f761738
commit
10b16b1386
2 changed files with 3 additions and 2 deletions
|
@ -39,10 +39,11 @@ In `init.el`,
|
||||||
### Use-package
|
### Use-package
|
||||||
|
|
||||||
``` emacs-lisp
|
``` emacs-lisp
|
||||||
|
;; Don't load after init time.
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:ensure t
|
:ensure t
|
||||||
:defer 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.
|
This package requires the fonts included with `all-the-icons` to be installed.
|
||||||
|
|
|
@ -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 'find-file-hook #'doom-modeline-update-buffer-file-name)
|
||||||
(add-hook 'after-revert-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)
|
(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
|
(doom-modeline-def-segment buffer-info
|
||||||
"Combined information about the current buffer, including the current working
|
"Combined information about the current buffer, including the current working
|
||||||
|
|
Loading…
Reference in a new issue