Skip to content

Commit 2be4878

Browse files
committed
fix fonts in emacs
1 parent e7abdd5 commit 2be4878

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

macos/install/02-20-fonts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
source "$DOT_HOME/lib/macos/include.sh"
6+
7+
log_step "Installing fonts via Homebrew"
8+
9+
# Iosevka font variants
10+
CASKS=(
11+
"font-iosevka"
12+
"font-iosevka-nerd-font"
13+
)
14+
15+
for cask in "${CASKS[@]}"; do
16+
if brew list --cask "$cask" &>/dev/null; then
17+
log_info "$cask already installed"
18+
else
19+
install_cask "$cask"
20+
fi
21+
done
22+
23+
log_success "Fonts installation completed"
24+
log_info "Restart applications to use the new fonts"

shared/tools/emacs/config/config.org

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,14 @@ Different machines get different values.
138138
#+begin_src emacs-lisp
139139
(defvar vik/big-font-size
140140
(cond
141+
((eq system-type 'darwin) 180) ;; macOS needs larger due to scaling
141142
((string= (getenv "DESKTOP") "1") 180)
142143
((string= (getenv "LAPTOP") "2") 170)
143144
(t 170)))
144145

145146
(defvar vik/default-font-size
146147
(cond
148+
((eq system-type 'darwin) 180) ;; macOS needs larger due to scaling
147149
((string= (getenv "DESKTOP") "1") 110)
148150
((string= (getenv "LAPTOP") "2") 150)
149151
(t 110)))

0 commit comments

Comments
 (0)