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