summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--init.org18
1 files changed, 12 insertions, 6 deletions
diff --git a/init.org b/init.org
index 09550bc..043a105 100644
--- a/init.org
+++ b/init.org
@@ -874,17 +874,23 @@ Invokes [[https://direnv.net/][direnv]] to obtain environment for the current fi
 Somehow I need to set the font to a higher height on MacOS.
 
 #+BEGIN_SRC emacs-lisp
+(defun my/default-font-size()
+  "Set the size of the font based on the operating system."
+  (if (memq window-system '(mac ns))
+      150
+    130))
+
 (set-face-attribute 'default nil
-                    :family "JetBrains Mono"
-                    :height 130)
+                    :family "Source Code Pro"
+                    :height (my/default-font-size))
 
 (set-face-attribute 'fixed-pitch nil
-                    :family "JetBrain Mono"
-                    :height 130)
+                    :family "Source Code Pro"
+                    :height (my/default-font-size))
 
 (set-face-attribute 'variable-pitch nil
-                    :family "Roboto"
-                    :height 130)
+                    :family "DejaVu Sans"
+                    :height (my/default-font-size))
 #+END_SRC
 
 ** fringe