about summary refs log tree commit diff
path: root/users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-11-21T03·16-0800
committerwpcarro <wpcarro@gmail.com>2022-11-25T16·50+0000
commit355e08cf3bd8d1ef63baeb178dc51b82004a6216 (patch)
tree7ffce8ba781bb9a75bdee3cfb44c0e9bf9fa2f8c /users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el
parent8fd9b91d2938bc68b4ed7d1a2dac3f753d3fa31e (diff)
feat(wpcarro/emacs): Define constants-osx? r/5319
We need build-time branching and run-time branching to support OSX and Linux.

Change-Id: Ie8de39f8ce34004d8fb3acf5bb5f2ba0b5f2e3d8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7316
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el')
-rw-r--r--users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el b/users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el
index 02904e83a50d..656c819ee4c2 100644
--- a/users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el
+++ b/users/wpcarro/emacs/.emacs.d/wpc/wpc-ui.el
@@ -166,7 +166,7 @@
 (when window-system
   ;; On OSX, JetBrainsMono is installed as "JetBrains Mono", and I'm
   ;; not sure how to change that.
-  (let ((font (if (memq window-system '(ns)) "JetBrains Mono" "JetBrainsMono")))
+  (let ((font (if constants-osx? "JetBrains Mono" "JetBrainsMono")))
     (fonts-set font)
     ;; Some themes (e.g. doom-acario-*) change the font for comments. This
     ;; should prevent that.