blob: 4568e74899b58d5642e70aab9a8e7e106f031601 (
plain) (
blame)
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
|
;;; early-init.el --- Early initialization -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
;; make garbage collector less invasive
(setq gc-cons-threshold most-positive-fixnum)
(setq gc-cons-percentage 0.6)
;; disable GUI elements
(scroll-bar-mode -1) ; hide the scroll bar
(tool-bar-mode -1) ; hide the tool bar
(menu-bar-mode -1) ; hide the menu
(blink-cursor-mode -1) ; don't blink the cursor
(setq make-pointer-invisible t) ;; hide cursor while typing
(setq use-dialog-box nil) ;; do not show GUI dialogs
(setq inhibit-startup-screen t) ;; hide the startup screen
;; increase font size
(set-face-attribute 'default nil :height 130)
(setq init-file-debug t)
(setq debug-on-error init-file-debug)
(add-hook
'emacs-startup-hook
(lambda (&rest _)
(setq garbage-collection-messages t) ;; log when the gc kicks in
;; Make gc pauses faster by decreasing the threshold.
(setq gc-cons-threshold (* 2 1000 1000))
;; Portion of heap used for allocation. Defaults to 0.1.
(setq gc-cons-percentage 0.6)))
;;; early-init.el ends here
|