-
Notifications
You must be signed in to change notification settings - Fork 0
/
early-init.el
39 lines (32 loc) · 1.45 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
;;; early-init.el --- Trev's Early Init Config -*- lexical-binding: t -*-
;; Startup hacks
(setq gc-cons-threshold most-positive-fixnum
gc-cons-percentage 0.6
vc-handled-backends '(Git))
;; After Emacs has completely started, reset the values to more sensible ones.
(add-hook
'emacs-startup-hook
(let ((orig-file-name-handler-alist file-name-handler-alist))
(setq file-name-handler-alist nil)
(lambda ()
(setq gc-cons-threshold (* 16 1024 1024) ; 16mb
gc-cons-percentage 0.1
file-name-handler-alist orig-file-name-handler-alist))))
(setq package-quickstart t) ; Don't forget to run `package-quickstart-refresh'!
(scroll-bar-mode -1) ; Disable visible scrollbar
(tool-bar-mode -1) ; Disable the toolbar
(menu-bar-mode -1) ; Disable the menubar
(tooltip-mode -1) ; Disable tooltips
(modify-all-frames-parameters
'((internal-border-width . 40))) ; Frame padding
(setq-default left-fringe-width 4
left-margin-width 1
right-fringe-width 4
right-margin-width 1)
;; Resizing the Emacs frame can be a terribly expensive part of changing the
;; font. By inhibiting this, we easily halve startup times with fonts that are
;; larger than the system default.
(setq frame-inhibit-implied-resize t
frame-resize-pixelwise t)
(provide 'early-init)
;;; early-init.el ends here