aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/early-init.el
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2022-09-14 00:14:06 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2022-09-14 00:47:16 +0100
commit81d25daf6192709504867509f2004106e27c6c95 (patch)
tree1242ff7f83b23df333b6b15428de92361dffcd4b /Emacs/.config/emacs/early-init.el
parentdf8c3846306c8907ece8037f9ac2fcd318c1b60f (diff)
downloaddotfiles-81d25daf6192709504867509f2004106e27c6c95.tar.gz
dotfiles-81d25daf6192709504867509f2004106e27c6c95.tar.bz2
dotfiles-81d25daf6192709504867509f2004106e27c6c95.zip
(Emacs)+early-init native-compilation options
Set to 4 workers at the start to make compilation at least as fast as possible: my laptop has 4 cores so it'll just slow it down until early compilation is done, while my desktop can still keep going as it has 8 threads. In config.org this is setup correctly so the rest of the config (which is the much larger part) uses a system dependent number of cores.
Diffstat (limited to 'Emacs/.config/emacs/early-init.el')
-rw-r--r--Emacs/.config/emacs/early-init.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/early-init.el b/Emacs/.config/emacs/early-init.el
index afcb4ab..e7a3e75 100644
--- a/Emacs/.config/emacs/early-init.el
+++ b/Emacs/.config/emacs/early-init.el
@@ -6,7 +6,12 @@
(setq gc-cons-threshold most-positive-fixnum
package-enable-at-startup nil
frame-inhibit-implied-resize nil
- frame-resize-pixelwise t)
+ frame-resize-pixelwise t
+ native-comp-async-jobs-number 4
+ native-comp-eln-load-path (list (concat user-emacs-directory ".local/native-compile"))
+ native-comp-always-compile nil
+ native-comp-async-report-warnings-errors 'silent)
+
(push '(menu-bar-lines . 0) default-frame-alist)
(push '(tool-bar-lines . 0) default-frame-alist)
(push '(vertical-scroll-bars) default-frame-alist)