mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-24 03:00:10 +00:00
Add the roy-modal indicator.
This commit is contained in:
parent
9acad7f3f4
commit
d430859bf2
1 changed files with 15 additions and 5 deletions
|
@ -240,8 +240,6 @@ active.")
|
||||||
(defface doom-modeline-evil-replace-state'((t (:inherit doom-modeline-buffer-modified)))
|
(defface doom-modeline-evil-replace-state'((t (:inherit doom-modeline-buffer-modified)))
|
||||||
"Face for the replace state tag in evil state indicator.")
|
"Face for the replace state tag in evil state indicator.")
|
||||||
|
|
||||||
(defface doom-modeline-god-state'((t (:inherit doom-modeline-info)))
|
|
||||||
"Face for the god state indicator.")
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Modeline library
|
;; Modeline library
|
||||||
|
@ -1177,7 +1175,19 @@ See `mode-line-percent-position'.")
|
||||||
(doom-modeline-def-segment god-state
|
(doom-modeline-def-segment god-state
|
||||||
"The current god state. Requires `god-mode' to be enabled."
|
"The current god state. Requires `god-mode' to be enabled."
|
||||||
(when (bound-and-true-p god-local-mode)
|
(when (bound-and-true-p god-local-mode)
|
||||||
(propertize " <G> " 'face 'doom-modeline-god-state)))
|
(propertize " <G> " 'face (if (doom-modeline--active)
|
||||||
|
'doom-modeline-evil-normal-state))))
|
||||||
|
|
||||||
|
|
||||||
|
;;
|
||||||
|
;; ryo-modal state
|
||||||
|
;;
|
||||||
|
|
||||||
|
(doom-modeline-def-segment ryo-modal-state ()
|
||||||
|
"The current ryo-modal state. Requires `ryo-modal-mode' to be enabled."
|
||||||
|
(when (bound-and-true-p ryo-modal-mode)
|
||||||
|
(propertize " <R> " 'face (if (doom-modeline--active)
|
||||||
|
'doom-modeline-evil-normal-state))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
@ -1201,7 +1211,7 @@ See `mode-line-percent-position'.")
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(doom-modeline-def-modeline 'main
|
(doom-modeline-def-modeline 'main
|
||||||
'(bar workspace-number window-number evil-state god-state matches " " buffer-info buffer-position " " selection-info)
|
'(bar workspace-number window-number evil-state god-state ryo-modal-state matches " " buffer-info buffer-position " " selection-info)
|
||||||
'(global input-method buffer-encoding major-mode process vcs flycheck))
|
'(global input-method buffer-encoding major-mode process vcs flycheck))
|
||||||
|
|
||||||
(doom-modeline-def-modeline 'minimal
|
(doom-modeline-def-modeline 'minimal
|
||||||
|
@ -1209,7 +1219,7 @@ See `mode-line-percent-position'.")
|
||||||
'(media-info major-mode))
|
'(media-info major-mode))
|
||||||
|
|
||||||
(doom-modeline-def-modeline 'special
|
(doom-modeline-def-modeline 'special
|
||||||
'(bar window-number evil-state god-state matches " " buffer-info-simple buffer-position " " selection-info)
|
'(bar window-number evil-state god-state ryo-modal-state matches " " buffer-info-simple buffer-position " " selection-info)
|
||||||
'(global input-method buffer-encoding major-mode process flycheck))
|
'(global input-method buffer-encoding major-mode process flycheck))
|
||||||
|
|
||||||
(doom-modeline-def-modeline 'project
|
(doom-modeline-def-modeline 'project
|
||||||
|
|
Loading…
Reference in a new issue