doomemacs/modules/ui/doom-modeline
Henrik Lissner ecd8ad0f46
Change how themes, fonts & modelines are loaded
WARNING: THIS IS A BREAKING CHANGE FOR THEME/FONT/NLINUM CUSTOMIZATIONS.

This change was motivated by the need to decouple theme and font loading
from the ui/doom module.

Now, it is doom-core's purview. Theme and fonts are loaded after
initfiles are read (attached to the doom-init-ui-hook hook), giving
other modules (especially private ones) a chance to change the theme or
fonts.

+ Refactor core-ui.el
+ New init hook: doom-init-ui-hook
+ Decouple theme/font loading from ui/doom
+ Load modelines are doom-init-ui-hook
+ New theme/font variables (replaces old ui/doom variables)
  + doom-theme
  + doom-font
  + doom-variable-pitch-font
  + doom-unicode-font
+ Change nlinum variables
  + doom-line-number-lpad
  + doom-line-number-rpad
  + doom-line-number-pad-char

Addresses #117
2017-06-28 16:18:24 +02:00
..
config.el Change how themes, fonts & modelines are loaded 2017-06-28 16:18:24 +02:00
packages.el Move all-the-icons to core-ui 2017-06-09 01:09:19 +02:00
README.org Update READMEs & add new ones 2017-05-25 20:09:12 +02:00

:ui doom-modeline

This module customizes the Emacs mode-line.

The DOOM modeline was designed for minimalism, and offers:

  • A match count panel (for evil-search, iedit and evil-substitute)
  • An indicator for recording a macro
  • Local python/ruby version in the major-mode
  • A customizable mode-line height (see +doom-modeline-height)
  • An error/warning count segment for flycheck

/screenshots/ml.png /screenshots/ml-search.png /screenshots/ml-subst.png /screenshots/ml-macro.png /screenshots/ml-version.png /screenshots/ml-errors.png

Install

This module requires the fonts included with all-the-icons to be installed.

Run M-x all-the-icons-install-fonts to do so.

Extracting my modeline

Some might want my modeline without the DOOM config altogether. I've taken some care to make this as easier for you.

Here is what you must do:

  • Ensure projectile and all-the-icons are installed
  • Ensure projectile-mode is enabled
  • Ensure the fonts included with all-the-icons are installed (M-x all-the-icons-install-fonts)
  • Replace def-package! calls with use-package
  • Replace doom-project-root calls with projectile-project-root

And you should be good to go. As I have never used this out of my config I can't guarantee immediate success, but I'd be happy to help you out. File an issue.

Troubleshooting

Where are my minor-modes?

I didn't need it, so I removed it. I wrote doom/what-minor-mode in the rare case I needed to investigate the currently active minor modes however.