Skip to content

Commit

Permalink
Fix #133: buffer-info loses face after frame focus.
Browse files Browse the repository at this point in the history
Also see #114.
  • Loading branch information
seagle0128 committed Mar 5, 2019
1 parent 8e0ed62 commit 5c926b8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions doom-modeline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,8 @@ mouse-1: Previous buffer\nmouse-3: Next buffer"
(advice-add #'undo-tree-undo-1 :after #'doom-modeline-update-buffer-file-name)
(advice-add #'undo-tree-redo-1 :after #'doom-modeline-update-buffer-file-name)
(advice-add #'symbol-overlay-rename :after #'doom-modeline-update-buffer-file-name)

(with-no-warnings
(if (boundp 'after-focus-change-function)
(add-function :after after-focus-change-function
(lambda ()
(if (frame-focus-state)
(doom-modeline-update-buffer-file-name))))
(add-hook 'focus-in-hook #'doom-modeline-update-buffer-file-name)))
(advice-add #'doom-modeline-set-selected-window :after #'doom-modeline-update-buffer-file-name)
(advice-add #'doom-modeline-refresh-frame :after #'doom-modeline-update-buffer-file-name)

(when (>= emacs-major-version 26)
(add-variable-watcher
Expand Down

0 comments on commit 5c926b8

Please sign in to comment.