Merge branch 'master' into 'master'
Add xah-fly-keys to modal segment See merge request jessieh/mood-line!12
This commit is contained in:
commit
9fede653b6
@ -114,6 +114,16 @@ The `Face' may be either a face symbol or a property list of key-value pairs
|
|||||||
face (:inherit mood-line-status-warning))
|
face (:inherit mood-line-status-warning))
|
||||||
"--- "))
|
"--- "))
|
||||||
|
|
||||||
|
;; ---------------------------------- ;;
|
||||||
|
;; Xah segment function
|
||||||
|
;; ---------------------------------- ;;
|
||||||
|
|
||||||
|
(defun mood-line-segment-modal--xah ()
|
||||||
|
"Display the current xah-fly-keys state."
|
||||||
|
(if (bound-and-true-p xah-fly-insert-state-p)
|
||||||
|
"<I> "
|
||||||
|
"<C> "))
|
||||||
|
|
||||||
;; -------------------------------------------------------------------------- ;;
|
;; -------------------------------------------------------------------------- ;;
|
||||||
;;
|
;;
|
||||||
;; Provide package
|
;; Provide package
|
||||||
|
@ -84,6 +84,7 @@
|
|||||||
(declare-function mood-line-segment-modal--evil "mood-line-segment-modal" ())
|
(declare-function mood-line-segment-modal--evil "mood-line-segment-modal" ())
|
||||||
(declare-function mood-line-segment-modal--meow "mood-line-segment-modal" ())
|
(declare-function mood-line-segment-modal--meow "mood-line-segment-modal" ())
|
||||||
(declare-function mood-line-segment-modal--god "mood-line-segment-modal" ())
|
(declare-function mood-line-segment-modal--god "mood-line-segment-modal" ())
|
||||||
|
(declare-function mood-line-segment-modal--xah "mood-line-segment-modal" ())
|
||||||
|
|
||||||
(declare-function mc/num-cursors "multiple-cursors" ())
|
(declare-function mc/num-cursors "multiple-cursors" ())
|
||||||
|
|
||||||
@ -382,7 +383,10 @@ Modal modes checked, in order: `evil-mode', `meow-mode', `god-mode'."
|
|||||||
(mood-line-segment-modal--meow))
|
(mood-line-segment-modal--meow))
|
||||||
((featurep 'god-mode)
|
((featurep 'god-mode)
|
||||||
(require 'mood-line-segment-modal)
|
(require 'mood-line-segment-modal)
|
||||||
(mood-line-segment-modal--god))))
|
(mood-line-segment-modal--god))
|
||||||
|
((bound-and-true-p xah-fly-keys)
|
||||||
|
(require 'mood-line-segment-modal)
|
||||||
|
(mood-line-segment-modal--xah))))
|
||||||
|
|
||||||
;; -------------------------------------------------------------------------- ;;
|
;; -------------------------------------------------------------------------- ;;
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user