fix(wpcarro/emacs): Temporarily prefer Monospace to JetBrainsMono

When I migrated to /depot I removed JetBrainsMono from my monorepo. This is fine
on NixOS machines because I'm depending on JetBrainsMono through Nix
configuration. But for non-NixOS machines (my work machines), I cannot do
this.

Until I've thought of how I'd like to support this, I'm doing to use Monospace,
which should be available on all of my machines.

Change-Id: Icd0cd641526246d40b8d971907c63c7f32ef1c3d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4821
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
This commit is contained in:
William Carroll 2022-01-06 14:09:20 -08:00 committed by wpcarro
parent 7c558f7c53
commit 9e22c512b5

View file

@ -162,16 +162,16 @@
;; during initialization?
(when (device-laptop?) (laptop-battery-display))
(if window-system
(progn
(fonts-whitelist-set "JetBrainsMono")
(colorscheme-whitelist-set 'doom-one-light)
;; the doom-acario-dark theme uses "Monospace Serif" as the font for
;; comments, and I'd prefer JetBrainsMono (no italics).
(set-face-attribute font-lock-comment-face nil
:family "JetBrainsMono"
:slant 'normal))
(load-theme 'wombat))
(colorscheme-whitelist-set 'doom-one-light)
(when window-system
(let ((font "Monospace"))
(fonts-whitelist-set font)
;; Some themes (e.g. doom-acario-*) change the font for comments. This
;; should prevent that.
(set-face-attribute font-lock-comment-face nil
:family font
:slant 'normal)))
(modeline-setup)