diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-22 11:36:09 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-22 11:36:09 -0500 |
| commit | 9896e7f5861beeb591ece48f38d1135ffdc6059b (patch) | |
| tree | f599ca78cf0b57af65aec19dbdca7998df8b95e8 /modules/font-config.el | |
| parent | aa033b1ea9707dda78e9cb75dfe1b13b78db11b5 (diff) | |
| download | dotemacs-9896e7f5861beeb591ece48f38d1135ffdc6059b.tar.gz dotemacs-9896e7f5861beeb591ece48f38d1135ffdc6059b.zip | |
feat(font): set default font height per machine
The default fontaine preset now picks its height based on `env-laptop-p`. Laptop: 120 (12pt). Desktop: 140 (14pt), matches foot's `size=14`. Text reads at the same size across Emacs and the terminal.
This reuses `env-laptop-p` from `host-environment.el` instead of adding a gitignored local override.
Diffstat (limited to 'modules/font-config.el')
| -rw-r--r-- | modules/font-config.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/font-config.el b/modules/font-config.el index c56f0ad7..683e47e1 100644 --- a/modules/font-config.el +++ b/modules/font-config.el @@ -77,11 +77,11 @@ ("M-S-f" . fontaine-set-preset) ;; was M-F, overrides forward-word :config (setq fontaine-presets - '( + `( (default :default-family "BerkeleyMono Nerd Font" :default-weight regular - :default-height 120 + :default-height ,(if (env-laptop-p) 120 140) :fixed-pitch-family nil ;; falls back to :default-family :fixed-pitch-weight nil ;; falls back to :default-weight :fixed-pitch-height 1.0 |
