diff options
| author | 2026-02-09 23:19:19 +0000 | |
|---|---|---|
| committer | 2026-02-09 23:56:57 +0000 | |
| commit | e9cd60bf35685d17f0be97bb849683dec0825efd (patch) | |
| tree | 75e7521ea542431220ef51ae1d3467b30da54fab /dot_config/emacs/early-init.el | |
| download | dotfiles-e9cd60bf35685d17f0be97bb849683dec0825efd.tar.gz | |
add emacs config
Diffstat (limited to 'dot_config/emacs/early-init.el')
| -rw-r--r-- | dot_config/emacs/early-init.el | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dot_config/emacs/early-init.el b/dot_config/emacs/early-init.el new file mode 100644 index 0000000..0eea59d --- /dev/null +++ b/dot_config/emacs/early-init.el | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | ;; early-init.el -*- lexical-binding: t; -*- | ||
| 2 | |||
| 3 | ;; Disable package.el | ||
| 4 | (setq package-enable-at-startup nil) | ||
| 5 | |||
| 6 | ;; Defer garbage collection further back in the startup process | ||
| 7 | (setq gc-cons-threshold most-positive-fixnum | ||
| 8 | gc-cons-percentage 0.6) | ||
| 9 | |||
| 10 | (add-hook 'emacs-startup-hook | ||
| 11 | (lambda () | ||
| 12 | (setq gc-cons-threshold 16777216 ; 16mb | ||
| 13 | gc-cons-percentage 0.1))) | ||
| 14 | |||
| 15 | ;; Ignore X resources | ||
| 16 | (setq inhibit-x-resources t) | ||
| 17 | |||
| 18 | ;; Do not resize the frame at this early stage. | ||
| 19 | (setq frame-inhibit-implied-resize t) | ||
| 20 | |||
| 21 | (push '(menu-bar-lines . 0) default-frame-alist) | ||
| 22 | (push '(tool-bar-lines . 0) default-frame-alist) | ||
| 23 | (push '(vertical-scroll-bars) default-frame-alist) | ||
| 24 | (push '(horizontal-scroll-bars) default-frame-alist) | ||
| 25 | (push (cons 'left-fringe 8) default-frame-alist) | ||
| 26 | (push (cons 'right-fringe 8) default-frame-alist) | ||
| 27 | (push '(no-special-glyphs) default-frame-alist) | ||
| 28 | (push '(undecorated) default-frame-alist) | ||
| 29 | (setq menu-bar-mode nil tool-bar-mode nil scroll-bar-mode nil) | ||
| 30 | (push '(internal-border-width . 4) default-frame-alist) | ||
| 31 | ;; (setq inhibit-startup-screen t) | ||
| 32 | (setq inhibit-startup-message t) | ||
| 33 | (setq initial-scratch-message nil) | ||
| 34 | |||
| 35 | ;; Local Variables: | ||
| 36 | ;; no-byte-compile: t | ||
| 37 | ;; no-native-compile: t | ||
| 38 | ;; no-update-autoloads: t | ||
| 39 | ;; End: | ||
| 40 | |||
