diff --git a/README.md b/README.md index 50307d1..97e6cc7 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/doom-modeline.el b/doom-modeline.el index 38168c8..ebedc20 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -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