Filter out windows for winner-mode by regex match; remove doom-ignore-buffers

This commit is contained in:
Henrik Lissner
2016-06-17 15:59:06 -04:00
parent 748e300443
commit b46a75bfe0
2 changed files with 7 additions and 19 deletions

View File

@ -75,9 +75,14 @@
;; window config undo/redo
(setq winner-dont-bind-my-keys t)
(require 'winner)
;; Ignore all special buffers
(advice-add 'winner-window-list :filter-return 'doom*winner-window-list)
(defun doom*winner-window-list (windows)
(-remove (lambda (win) (string-match-p "^\\s-*\\*" (buffer-name (window-buffer win))))
windows))
(winner-mode 1)
(add-hook! after-init
(setq winner-boring-buffers doom-ignore-buffers))
;; Let editorconfig handle global whitespace settings
(use-package editorconfig :demand t