setq -> setq-default (whoops); improve modeline config

This commit is contained in:
Henrik Lissner 2016-10-05 12:51:56 +02:00
parent 823dc07dc9
commit 62d220d863

View file

@ -401,9 +401,10 @@ lines are selected, or the NxM dimensions of a block selection."
" "
,(if (eq id 'scratch)
'(*buffer-project)
'(*buffer-info))
,(if (eq id 'media)
(if (eq id 'media)
'(*media-info)
'(*buffer-info)))
,(unless (eq id 'media)
'(list " %l:%c %p "
(*selection-info)
(*flycheck)))))
@ -416,7 +417,7 @@ lines are selected, or the NxM dimensions of a block selection."
,(+ 1 (string-width (format-mode-line rhs)))))))))
(list lhs mid rhs))))
(setq mode-line-format (doom-modeline))
(setq-default mode-line-format (doom-modeline))
(add-hook! image-mode
(setq mode-line-format (doom-modeline 'media)))