doomemacs/modules/ui/doom
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
..
autoload Change how themes, fonts & modelines are loaded 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
README.org

:ui doom

This module modifies Emacs' user interface.

DOOM's look is loosely inspired by Atom's One Dark theme, and is largely contained in the doom-themes plugin.

By default, this module uses:

  • Fira Mono and Fira Sans (fonts)
  • DejaVu Sans Mono (font, for displaying unicode characters)
  • hideshow, modified to use a nicer folded-region indicator.
  • Custom fringe bitmaps for git-gutter-fringe (thin bars)

Install

Fira Mono is this module's only dependency (if you want to use it).

MacOS

brew tap caskroom/fonts
brew cask install font-fira-{sans,mono} font-dejavu-sans

Arch Linux

sudo pacman --noconfirm --needed -S ttf-fira-{sans,mono} ttf-dejavu

Troubleshooting

Strange font symbols

If you're getting strange unicode symbols, that is likely all-the-icons doing (caused by other UI modules, specifically doom-modeline and doom-dashboard).

You must install the fonts included with all-the-icons with: M-x all-the-icons-install-fonts.