ed7d4ab4e6
This is to hopefully avoid running garbage collection while I am actively interacting with emacs, which should theoretically result in a smoother experience.
26 lines
992 B
EmacsLisp
26 lines
992 B
EmacsLisp
(setq gc-cons-threshold (* 128 1024 1024)) ;; Increase garbage collection threshold for performance (default 800000)
|
|
;; Increase amount of data read from processes, default 4k
|
|
(when (version<= "27.0" emacs-version)
|
|
(setq read-process-output-max (* 1024 1024)) ;; 1mb
|
|
)
|
|
|
|
;; Suppress warnings
|
|
(setq byte-compile-warnings '(not obsolete))
|
|
(setq warning-suppress-log-types '((comp) (bytecomp)))
|
|
(setq native-comp-async-report-warnings-errors 'silent)
|
|
|
|
;; Set up default visual settings
|
|
(setq frame-resize-pixelwise t)
|
|
;; Disable toolbar & menubar
|
|
(menu-bar-mode -1)
|
|
(when (fboundp 'tool-bar-mode)
|
|
(tool-bar-mode -1))
|
|
(when (display-graphic-p)
|
|
(context-menu-mode +1))
|
|
|
|
(setq default-frame-alist '((fullscreen . maximized)
|
|
(vertical-scroll-bars . nil)
|
|
(horizontal-scroll-bars . nil)
|
|
;; Set dark colors in early-init to prevent flashes of white.
|
|
(background-color . "#000000")))
|