dotfiles/flakes/emacs/config/early-init.el

28 lines
848 B
EmacsLisp

;; early-init.el --- -*- no-byte-compile: t -*-
(setq gc-cons-threshold 100000000)
(add-hook 'emacs-startup-hook
(lambda ()
(setq gc-cons-threshold 50000000)))
(setq byte-compile-warnings '(not obsolete))
(setq warning-suppress-log-types '((comp) (bytecomp)))
(setq native-comp-async-report-warnings-errors 'silent)
(setq inhibit-startup-echo-area-message (user-login-name))
(customize-set-variable 'load-prefer-newer t)
(setq frame-inhibit-implied-resize t
frame-resize-pixelwise t)
(setq inhibit-startup-message t)
(push '(tool-bar-lines . 0) default-frame-alist)
(push '(menu-bar-lines . 0) default-frame-alist)
(push '(vertical-scroll-bars) default-frame-alist)
(push '(mouse-color . "white") default-frame-alist)
(scroll-bar-mode -1)
(menu-bar-mode -1)
(add-to-list 'default-frame-alist '(undecorated . t))