;;; Mode line (setq mode-line-compact nil) ; Emacs 28 (setq mode-line-right-align-edge 'right-margin) (setq-default mode-line-format '("%e" prot-modeline-kbd-macro prot-modeline-narrow prot-modeline-input-method prot-modeline-buffer-status " " prot-modeline-buffer-identification " " prot-modeline-major-mode prot-modeline-process " " prot-modeline-vc-branch " " prot-modeline-flymake prot-modeline-eglot " " prot-modeline-misc-info prot-modeline-notmuch-indicator)) (with-eval-after-load 'spacious-padding (defun prot/modeline-spacious-indicators () "Set box attribute to `'prot-modeline-indicator-button' if spacious-padding is enabled." (if (bound-and-true-p spacious-padding-mode) (set-face-attribute 'prot-modeline-indicator-button nil :box t) (set-face-attribute 'prot-modeline-indicator-button nil :box 'unspecified))) ;; Run it at startup and then afterwards whenever ;; `spacious-padding-mode' is toggled on/off. (prot/modeline-spacious-indicators) (add-hook 'spacious-padding-mode-hook #'prot/modeline-spacious-indicators)) (provide 'bard-emacs-modeline) ;;; bard-emacs-modeline.el ends here