-
Notifications
You must be signed in to change notification settings - Fork 43
/
early-init.el
44 lines (42 loc) · 2.27 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
(setq
gc-cons-threshold 134217728
inhibit-startup-message t ; Reduce noise at startup
inhibit-startup-echo-area-message user-login-name
inhibit-startup-screen t
inhibit-default-init t
initial-scratch-message nil
auto-mode-case-fold nil ; Use case-sensitive `auto-mode-alist' for performance
fast-but-imprecise-scrolling t ; More performant rapid scrolling over unfontified regions
ffap-machine-p-known 'reject ; Don't ping things that look like domain names
frame-inhibit-implied-resize t ; Inhibit frame resizing for performance
idle-update-delay 1.0 ; slow down UI updates down
inhibit-compacting-font-caches t ; Inhibit frame resizing for performance
read-process-output-max (* 1024 1024) ; Increase how much is read from processes in a single chunk.
redisplay-skip-fontification-on-input t ; Inhibits it for better scrolling performance.
command-line-x-option-alist nil ; Remove irreleant command line options for faster startup
select-active-regions 'only ; Emacs hangs when large selections contain mixed line endings.
auto-save-list-file-prefix nil ; Disable auto-save
create-lockfiles nil ; Disable lockfiles
make-backup-files nil ; Disable backup files
vc-follow-symlinks t ; Do not ask about symlink following
custom-file (concat user-emacs-directory "custom.el") ; Place all "custom" code in a temporary file
use-short-answers t ; y/n for yes/no
package-quickstart nil ; Prevent package.el loading packages prior to their init-file
package-enable-at-startup nil
straight-vc-git-default-clone-depth 1 ; configure straight.el
straight-check-for-modifications '(check-on-save find-when-checking)
straight-repository-branch "develop")
(tool-bar-mode -1) ; Disable toolbar
(tooltip-mode -1) ; Disable tooltips
(menu-bar-mode -1) ; Disable menu bar
(scroll-bar-mode -1) ; Disable scroll bar
(let ((bootstrap-file
(locate-user-emacs-file "straight/repos/straight.el/bootstrap.el")))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))