From 10b16b1386510ec34511f79b6ea450520188f246 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Wed, 14 Nov 2018 04:16:42 +0800 Subject: [PATCH] Don't load doom-modeline after init time. --- README.md | 3 ++- doom-modeline.el | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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