* mood-line.el: Added god-mode support
This commit is contained in:
parent
f94b098b34
commit
214263c0fc
10
mood-line.el
10
mood-line.el
@ -348,10 +348,18 @@ The `Face' may be either a face symbol or a property list of key-value pairs
|
|||||||
mood-line-meow-state-alist)))
|
mood-line-meow-state-alist)))
|
||||||
(concat (propertize (car mode-cons) 'face (cdr mode-cons)) " "))))
|
(concat (propertize (car mode-cons) 'face (cdr mode-cons)) " "))))
|
||||||
|
|
||||||
|
(defun mood-line-segment-god ()
|
||||||
|
"Indicate whether or not god-mode is active."
|
||||||
|
(if (bound-and-true-p god-local-mode)
|
||||||
|
'(:propertize "<G> "
|
||||||
|
face (:inherit mood-line-status-warning))
|
||||||
|
"--- "))
|
||||||
|
|
||||||
(defun mood-line-segment-modal ()
|
(defun mood-line-segment-modal ()
|
||||||
"Call the correct mode-line segment when the first modal-mode is found."
|
"Call the correct mode-line segment when the first modal-mode is found."
|
||||||
(cond ((bound-and-true-p evil-mode) (mood-line-segment-evil))
|
(cond ((bound-and-true-p evil-mode) (mood-line-segment-evil))
|
||||||
((bound-and-true-p meow-mode) (mood-line-segment-meow))))
|
((bound-and-true-p meow-mode) (mood-line-segment-meow))
|
||||||
|
((featurep 'god-mode) (mood-line-segment-god))))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Activation function
|
;; Activation function
|
||||||
|
Loading…
Reference in New Issue
Block a user