-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathearly-init.el
49 lines (39 loc) · 1.36 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
49
;;; -*- lexical-binding: t -*-
;;
;; Basic initialization
;; ----------------------------------------------------
;; Redirect native-comp cache.
(when (fboundp 'startup-redirect-eln-cache)
(startup-redirect-eln-cache
(convert-standard-filename
(expand-file-name "var/eln-cache" user-emacs-directory))))
;; If something goes wrong, try to fix it interactively.
(setq debug-on-error t)
;; Just don't.
(setq custom-file "/dev/null")
;; Package management
;; ----------------------------------------------------
;; Start up the built-in Emacs package manager.
(package-initialize)
;; Add a larger package repository.
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
;; If the package list is empty, initialize it.
(unless package-archive-contents
(package-refresh-contents))
;; Install use-package and the :vc extension
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(unless (package-installed-p 'vc-use-package)
(package-vc-install "https://github.com/slotThe/vc-use-package"))
(use-package use-package
:config
(setq use-package-always-ensure t)
(setq use-package-verbose t))
;; Garbage collection
;; ----------------------------------------------------
(use-package gcmh
:hook (emacs-startup . gcmh-mode)
:init
(setq gcmh-idle-delay 'auto)
(setq gcmh-high-cons-threshold #x1000000)) ; 16MB