- (string-match "\*" (buffer-name))
- ;; (or (string-match "*scratch*" (buffer-name))
- ;; (string-match "*Message*" (buffer-name))
-
- ;; (equal major-mode 'eshell-mode))
- )
-
-(defun my-get-buffer-name-face (active-face, changed-face, readonly-face)
- (cond ((and buffer-read-only (not (my-is-special-buffer)))
- readonly-face)
- ((and (buffer-modified-p) (not (my-is-special-buffer)))
- changed-face)
- (t active-face)))
+ (string-match "\*" (buffer-name)))
+
+(defun my-get-buffer-name-face (orignal-face)
+ (cond
+ ((not (powerline-selected-window-active)) orignal-face)
+ (buffer-read-only
+ 'sd/buffer-view-active1)
+ ((and (buffer-modified-p) (not (my-is-special-buffer)))
+ 'sd/buffer-modified-active1)
+ (t orignal-face)))
+
+(defun get-active-window-evil-tag ()
+ (dolist (i (window-list) ret)
+ (with-selected-window i
+ (when (powerline-selected-window-active)
+ (setq ret (with-current-buffer (window-buffer)
+ evil-mode-line-tag))))))