aboutsummaryrefslogtreecommitdiff
path: root/nix/users/fcuny/configs/emacs/early-init.el
blob: 2bcbca57a7749b49e24e9ab00f413425da708056 (plain) (blame)
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
;;; early-init.el --- Early initialization -*- lexical-binding: t -*-

;;; Commentary:

;;; Code:

;; Startup speed, annoyance suppression
(setq gc-cons-threshold 10000000)
(setq byte-compile-warnings '(not obsolete))
(setq warning-suppress-log-types '((comp) (bytecomp)))
(setq native-comp-async-report-warnings-errors 'silent)

;; Silence startup message
(setq inhibit-startup-echo-area-message (user-login-name))

;; Default frame configuration: full screen, good-looking title bar on macOS
(setq frame-resize-pixelwise t)

(tool-bar-mode -1)

(setq default-frame-alist '((fullscreen . maximized)
			    ;; Setting the face in here prevents flashes of
			    ;; color as the theme gets activated
			    (ns-appearance . light)
			    (ns-transparent-titlebar . t)))

(set-face-attribute 'default nil :family "Source Code Pro" :height 150)

;;; early-init.el ends here