ui/doom: simplify +doom|buffer-mode-on
This commit is contained in:
parent
d18136e9df
commit
3dc1fa00ec
1 changed files with 2 additions and 2 deletions
|
@ -58,8 +58,8 @@
|
|||
(defun +doom|buffer-mode-on ()
|
||||
"Brightens buffers so long as they represent files and aren't popups."
|
||||
(when (and (not doom-buffer-mode)
|
||||
buffer-file-name
|
||||
(not (doom-popup-p (selected-window))))
|
||||
(not doom-popup-mode)
|
||||
buffer-file-name)
|
||||
(doom-buffer-mode +1)))
|
||||
(add-hook 'find-file-hook '+doom|buffer-mode-on)
|
||||
(add-hook 'after-revert-hook '+doom|buffer-mode-on)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue