blob: af450625766fd42466ab34d4cc4e5d6080807687 (
plain)
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
|
;;; early-init.el --- What Emacs loads before init.el -*- lexical-binding: t; -*-
;; Copyright (C) 2022 Aryadev Chavali
;; Author: Aryadev Chavali <aryadev@aryadevchavali.com>
;; Keywords:
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License Version
;; 2 as published by the Free Software Foundation.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; Sets up some variables and graphical configuration to make Emacs
;; less janky looking while loading.
;;; Code:
(setq gc-cons-threshold most-positive-fixnum
package-enable-at-startup nil
frame-inhibit-implied-resize nil
frame-resize-pixelwise t
native-comp-async-jobs-number 4
native-comp-eln-load-path (list (concat user-emacs-directory ".local/native-compile"))
native-comp-always-compile nil
native-comp-async-report-warnings-errors 'silent)
;; don't use x resources lol
(advice-add #'x-apply-session-resources :override #'ignore)
;; turn off the menu bar, tool bar, scroll bar, fringes
;; also set the transparency (active inactive)
(setq-default
default-frame-alist '((menu-bar-lines . 0)
(tool-bar-lines . 0)
(scroll-bar-lines . 0)
(left-fringe . 0)
(right-fringe . 0)
(alpha . (90 80))))
(scroll-bar-mode -1)
|