diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-14 23:41:38 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-14 23:41:38 +0100 |
commit | cbd1676781aedf79313356d90ea929029cf91d78 (patch) | |
tree | e9514967c42f56be09056633000de3cd52e8e9f7 /Emacs/.config/emacs/early-init.el | |
parent | d3ce3f83a4a94b878a4450b6091da25d945cf765 (diff) | |
download | dotfiles-cbd1676781aedf79313356d90ea929029cf91d78.tar.gz dotfiles-cbd1676781aedf79313356d90ea929029cf91d78.tar.bz2 dotfiles-cbd1676781aedf79313356d90ea929029cf91d78.zip |
+early-init.el
From Emacs 27+, early-init.el provides control over stuff earlier than
UI load allowing for fine grained control over the load up. Here you
setup stuff such that Emacs loads this code most eagerly.
In this case, I set gc-cons-threshold to the highest value to
aggressively load the config without care for garbage collection, as
well as restricting standard package use. Along with that are some
basic UI things so that I don't have to deal with them even in load
up such as menu-bars and the alpha.
As this code is not error prone at all and is loaded before init.el
these choices allow for an easier debugging experience as well.
Diffstat (limited to 'Emacs/.config/emacs/early-init.el')
-rw-r--r-- | Emacs/.config/emacs/early-init.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/early-init.el b/Emacs/.config/emacs/early-init.el new file mode 100644 index 0000000..fb23089 --- /dev/null +++ b/Emacs/.config/emacs/early-init.el @@ -0,0 +1,8 @@ +(setq gc-cons-threshold most-positive-fixnum + package-enable-at-startup nil + frame-inhibit-implied-resize t) +(push '(menu-bar-lines . 0) default-frame-alist) +(push '(tool-bar-lines . 0) default-frame-alist) +(push '(vertical-scroll-bars) default-frame-alist) +(push '(alpha . 85) default-frame-alist) +(advice-add #'x-apply-session-resources :override #'ignore) |