-
Notifications
You must be signed in to change notification settings - Fork 0
/
early-init.el
48 lines (43 loc) · 1.7 KB
/
early-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
;;; early-init --- Set config as early as possible -*- lexical-binding: t -*-
;;; Commentary:
;; HACK Work around native compilation on macOS failing with 'ld: library not
;; found for -lemutls_w'.
;; https://github.com/d12frosted/homebrew-emacs-plus/issues/554
;; also setup of options which the initial frame shoud obey
;;; Code:
(if (equal system-type 'darwin)
(progn
(setenv
"LIBRARY_PATH"
(string-join
'("/opt/homebrew/opt/gcc/lib/gcc/13"
"/opt/homebrew/opt/libgccjit/lib/gcc/13"
"/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current/gcc/aarch64-apple-darwin23/13")
":"))
(modify-all-frames-parameters
'((ns-transparent-titlebar . t) (ns-appearance . dark)))
(set-face-attribute
'default nil
:family "FiraCode Nerd Font Mono" ; -regular-normal-normal-*-16-*-*-*-m-0-iso10646-1")
:height 160
:weight 'normal
:slant 'normal
:width 'normal))
;; mac gets fancy FiraCode Nerd, everybody else just Fira Code.
;; someday I may get around to setting up nerd font for linux too
(set-face-attribute 'default nil
:family "Fira Code"
:height 160
:weight 'normal
:slant 'normal
:width 'normal))
;; need to set this in early-init to set for intitial frame
(setopt initial-frame-alist
'((horizontal-scroll-bars)
(vertical-scroll-bars)
(width . 200)
(height . 70)))
;; set this here so it gets applied to load of init.el (we hope)
;; OTOH init.elc shouldn't exist (check for it??)
(setq load-prefer-newer t) ;; IMHO the default value of this being nil is nuts
;;; early-init.el ends here