about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-01-19T02·27+0000
committerVincent Ambo <tazjin@google.com>2020-01-19T02·27+0000
commit3567f8bd0a0dcfb0e91eb94d5230e36458a21607 (patch)
treeedd7431b9865ad43b54be09048ff5a0f6c4d0296 /tools
parentee34920a98e83856f692aab9240e408580331338 (diff)
fix(emacs.d): Use "light" Input font on nugget r/418
Diffstat (limited to 'tools')
-rw-r--r--tools/emacs/config/look-and-feel.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/emacs/config/look-and-feel.el b/tools/emacs/config/look-and-feel.el
index 98716dde6465..b54bcd1b6ca7 100644
--- a/tools/emacs/config/look-and-feel.el
+++ b/tools/emacs/config/look-and-feel.el
@@ -21,8 +21,15 @@
   (mouse-wheel-mode t)
   (blink-cursor-mode -1))
 
-;; Configure editor fonts
-(let ((font (format "Input Mono-%d" 12)))
+;; Configure Emacs fonts.
+;;
+;; On nugget, due to some font rendering issues that I haven't managed
+;; to debug yet a light version of the Input font needs to be used.
+;; Otherwise all text appears in bold, which makes it seem like the
+;; weights are somehow messed up.
+(let ((font (if (equal "nugget" (s-trim (shell-command-to-string "hostname")))
+                (format "Input Mono Light-%d" 12)
+              (format "Input Mono-%d" 12))))
   (setq default-frame-alist `((font-backend . "xft")
                               (font . ,font)))
   (set-frame-font font t t))