diff --git a/mood-line.el b/mood-line.el index 3fd86b3..dae90cf 100644 --- a/mood-line.el +++ b/mood-line.el @@ -387,6 +387,22 @@ The mode line should fit the `window-width' with space between the lists." ,reserve)))) 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 @@ -446,22 +462,6 @@ Modal modes checked, in order: `evil-mode', `meow-mode', `god-mode'." ((featurep 'god-mode) (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