summaryrefslogtreecommitdiff
path: root/emacs/.config/emacs-v2/early-init.el
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2024-01-30 09:35:15 -0500
committerKjetil Orbekk <kj@orbekk.com>2024-01-30 09:35:15 -0500
commit308ab86c18112ae122540afe3790c371b623cc83 (patch)
tree06d3442f1a46a3ff4d123ec30f507da80be417cd /emacs/.config/emacs-v2/early-init.el
parentf2428476368b38b2af86a70343aefd72f4eb001e (diff)
move emacs config
Diffstat (limited to 'emacs/.config/emacs-v2/early-init.el')
-rw-r--r--emacs/.config/emacs-v2/early-init.el32
1 files changed, 0 insertions, 32 deletions
diff --git a/emacs/.config/emacs-v2/early-init.el b/emacs/.config/emacs-v2/early-init.el
deleted file mode 100644
index 8184bbb..0000000
--- a/emacs/.config/emacs-v2/early-init.el
+++ /dev/null
@@ -1,32 +0,0 @@
-;;; -*- lexical-binding: t; -*-
-
-(setq package-enable-at-startup nil)
-
-;; Optimization: file name handlers not needed during startup.
-(defvar kj/file-name-handler-alist--old file-name-handler-alist)
-(setq file-name-handler-alist nil)
-(defun kj/restore-file-name-handler-alist ()
- (if (not (boundp 'kj/file-name-handler-alist--old))
- (message "File name handler already restored")
- (setq file-name-handler-alist kj/file-name-handler-alist--old)
- (makunbound 'kj/file-name-handler-alist--old)))
-
-;; Optimization: avoid garbage collection during startup.
-;; Reset by gcmh later.
-(setq gc-cons-threshold most-positive-fixnum)
-
-;; Move native compilation cache out of the way. Should be set in
-;; early-init so that package loding uses the updated value.
-(startup-redirect-eln-cache "~/.cache/emacs/eln-cache")
-
-;; Early options that affect startup.
-(setq
- package-native-compile t
- inhibit-startup-message t
- native-comp-async-report-warnings-errors 'silent
- default-frame-alist
- '((tool-bar-lines . 0)
- (menu-bar-lines . 0)
- (undecorated . t)
- (vertical-scroll-bars . nil)
- (horizontal-scroll-bars . nil)))