doomemacs/modules/ui/doom-modeline/config.el

77 lines
2.2 KiB
EmacsLisp
Raw Normal View History

;;; ui/doom-modeline/config.el -*- lexical-binding: t; -*-
2017-01-31 05:09:39 -05:00
;;
;; Custom faces
;;
(defgroup +doom-modeline nil
"TODO"
:group 'faces)
2017-01-31 05:09:39 -05:00
(defface doom-modeline-buffer-path
2017-11-05 17:16:13 +01:00
'((t (:inherit (mode-line-emphasis bold))))
"Face used for the dirname part of the buffer path."
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
(defface doom-modeline-buffer-file
2017-11-05 17:16:13 +01:00
'((t (:inherit (mode-line-buffer-id bold))))
"Face used for the filename part of the mode-line buffer path."
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
(defface doom-modeline-buffer-modified
2017-11-05 17:16:13 +01:00
'((t (:inherit (error bold) :background nil)))
"Face used for the 'unsaved' symbol in the mode-line."
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
(defface doom-modeline-buffer-major-mode
2017-11-05 17:16:13 +01:00
'((t (:inherit (mode-line-emphasis bold))))
"Face used for the major-mode segment in the mode-line."
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
(defface doom-modeline-highlight
'((t (:inherit mode-line-emphasis)))
"Face for bright segments of the mode-line."
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
(defface doom-modeline-panel
'((t (:inherit mode-line-highlight)))
"Face for 'X out of Y' segments, such as `+doom-modeline--anzu', `+doom-modeline--evil-substitute' and
`iedit'"
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
(defface doom-modeline-info
2017-11-05 17:16:13 +01:00
`((t (:inherit (success bold))))
"Face for info-level messages in the modeline. Used by `*vc'."
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
(defface doom-modeline-warning
2017-11-05 17:16:13 +01:00
`((t (:inherit (warning bold))))
"Face for warnings in the modeline. Used by `*flycheck'"
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
2017-05-01 14:52:29 -04:00
(defface doom-modeline-urgent
2017-11-05 17:16:13 +01:00
`((t (:inherit (error bold))))
"Face for errors in the modeline. Used by `*flycheck'"
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
;; Bar
(defface doom-modeline-bar '((t (:inherit highlight)))
"The face used for the left-most bar on the mode-line of an active window."
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
(defface doom-modeline-eldoc-bar '((t (:inherit shadow)))
2017-01-31 05:09:39 -05:00
"The face used for the left-most bar on the mode-line when eldoc-eval is
active."
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
(defface doom-modeline-inactive-bar '((t (:inherit warning :inverse-video t)))
"The face used for the left-most bar on the mode-line of an inactive window."
:group '+doom-modeline)
2017-01-31 05:09:39 -05:00
;;
(if (featurep! +new)
(load! "+new")
(load! "+old"))