Minimal mode line configuration for Emacs, inspired by doom-modeline
Go to file
Alynx Zhou b882588f03 Stop setting unimportant face to cursor point and misc info
Currently we add unimportant face to cursor point, however this looks
inconsist, that cursor point and position has different color compared
with cursor coordinate, and it won't dim if window is inactive. This
also breaks packages that adds text with custom face into misc info like
lsp-bridge, because we also override it with unimportant face.

This commit will unify text style by remove unimportant face for them.
2022-12-31 13:24:54 +08:00
LICENSE Add LICENSE 2022-12-22 11:16:23 +00:00
mood-line-segment-indentation.el Add encoding face for indentation segment 2022-12-29 14:25:49 -05:00
mood-line.el Stop setting unimportant face to cursor point and misc info 2022-12-31 13:24:54 +08:00
README.md Tweak README.md 2022-12-29 00:51:30 -05:00

mood-line

MELPA MELPA Stable

About

mood-line is a minimal mode line configuration that aims to replicate some of the features of the more advanced doom-modeline package.

Features

  • Clean, minimal design

  • Customizable glyph sets

  • Anzu and multiple-cursors counters

  • Encoding and EOL style indicator

  • Version control status indicator

  • Custom Flycheck/Flymake indicator

  • Lightweight with no dependencies

Preview

Preview Image

Configuration

You can install mood-line directly via package-install from MELPA. After installation, you can activate the global minor mode with M-x mood-line-mode. Deactivating mode-line-mode will restore the default mode-line-format.

If you are a user of use-package, it is easy to configure mood-line directly in your init.el:

(use-package mood-line

  ;; Enable mood-line
  :config
  (mood-line-mode)

  ;; Use pretty Fira Code-compatible glyphs
  :custom
  (mood-line-glyph-alist . mood-line-glyphs-fira-code))

By default, mood-line will use basic ASCII character glyphs to decorate mode line segments. If you'd like to see prettier Unicode glyphs, you can change the value of mood-line-glyph-alist:

;; The default set of glyphs:
;;   * myModifiedFile.js  Replace*3                 + main  Javascript  ! Issues: 2
(setq mood-line-glyph-alist mood-line-glyphs-ascii)

;; A set of Fira Code-compatible Unicode glyphs:
;;   ● myModifiedFile.js  Replace×3                 + main  JavaScript  → Issues: 2
(setq mood-line-glyph-alist mood-line-glyphs-fira-code)

;; A set of Unicode glyphs:
;;   ● myModifiedFile.js  Replace✕3                 🞤 main  JavaScript  ⚑ Issues: 2
(setq mood-line-glyph-alist mood-line-glyphs-unicode)

If you'd like to supply your own glyphs, you can use the customization interface (M-x customize-variable mood-line-glyph-alist) or view the documentation (M-x describe-variable mood-line-glyph-alist) for more information.

You can further tweak the behavior and appearance of mood-line by viewing the customizable variables and faces in the mood-line and mood-line-faces customization groups. (M-x customize-group mood-line)

Feedback

If you experience any issues with this package, please open an issue on the issue tracker.

Suggestions for improvements and feature requests are always appreciated, as well!