Powerline: never select child frame window

This commit is contained in:
MitchMarq42 2023-04-04 20:21:23 -08:00
parent 55abd1effe
commit 6dd0fc431a

View File

@ -638,12 +638,18 @@ targets."
(vterm-exit-functions . save-buffers-kill-terminal))
;; Better modeline? Better modeline.
;; (use-package powerline
;; :custom
;; (powerline-display-buffer-size nil)
;; (powerline-default-separator 'utf-8)
;; (powerline-utf-8-separator-left (string-to-char ""))
;; (powerline-utf-8-separator-right (string-to-char "")))
(use-package powerline
:custom
(powerline-display-buffer-size nil)
(powerline-default-separator 'utf-8)
(powerline-utf-8-separator-left (string-to-char ""))
(powerline-utf-8-separator-right (string-to-char ""))
:init
(defun mitch/powerline-never-select-cfwindow (orig)
"Only run ORIG if the current frame is not a child frame."
(unless (frame-parent) (funcall orig)))
;; (advice-add #'powerline-set-selected-window :around #'mitch/powerline-never-select-cfwindow)
)
(use-package doom-modeline
:after airline-themes
:custom