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 | 1fa817ab7390c694766d94215d4f63dd9dc31b95 (patch) | |
| tree | 3bedf315ba9ad162fecff6e99d1c3c445482a927 /modules | |
| parent | f7623d173ceedee58c833d858f78197883953554 (diff) | |
| download | dotemacs-1fa817ab7390c694766d94215d4f63dd9dc31b95.tar.gz dotemacs-1fa817ab7390c694766d94215d4f63dd9dc31b95.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')
| -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 c56f0ad74..683e47e15 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 |
