Move optional segments section

This commit is contained in:
Jessie Hildebrandt 2022-12-30 01:00:31 -05:00
parent 318ceaf07a
commit e42ee24e23

View File

@ -387,6 +387,22 @@ The mode line should fit the `window-width' with space between the lists."
,reserve)))) ,reserve))))
right))) right)))
;; -------------------------------------------------------------------------- ;;
;;
;; Optional segments
;;
;; -------------------------------------------------------------------------- ;;
;; ---------------------------------- ;;
;; Indentation style
;; ---------------------------------- ;;
(defun mood-line-segment-indentation ()
"Display the indentation style of the current buffer (if enabled)."
(when mood-line-show-indentation-style
(require 'mood-line-segment-indentation)
(mood-line-segment-indentation--segment)))
;; -------------------------------------------------------------------------- ;; ;; -------------------------------------------------------------------------- ;;
;; ;;
;; Modal editing segment ;; Modal editing segment
@ -446,22 +462,6 @@ Modal modes checked, in order: `evil-mode', `meow-mode', `god-mode'."
((featurep 'god-mode) ((featurep 'god-mode)
(mood-line-segment-modal-god)))) (mood-line-segment-modal-god))))
;; -------------------------------------------------------------------------- ;;
;;
;; Optional segments
;;
;; -------------------------------------------------------------------------- ;;
;; ---------------------------------- ;;
;; Indentation style
;; ---------------------------------- ;;
(defun mood-line-segment-indentation ()
"Display the indentation style of the current buffer (if enabled)."
(when mood-line-show-indentation-style
(require 'mood-line-segment-indentation)
(mood-line-segment-indentation--segment)))
;; -------------------------------------------------------------------------- ;; ;; -------------------------------------------------------------------------- ;;
;; ;;
;; Anzu segment ;; Anzu segment