Files
dotfiles/.config/emacs/early-init.el
T
Riyyi 89607db905 Emacs: Complete restructure of the config
Changed
- Org-mode babel config to separate .el modules
- Built-in package manager package.el to Elpaca
- Configuration macro use-package to setup.el
- Completion framework selectrum to vertico
2023-01-01 22:46:55 +01:00

40 lines
1009 B
EmacsLisp

;;; early-init.el --- -*- lexical-binding: t; -*-
;;; Commentary:
;; Emacs 27 introduces early-init.el, which is run before package and UI
;; initialization happens.
;;; Code:
;; (setq debug-on-error t)
;; Defer the garbage collection during startup
(setq gc-cons-threshold most-positive-fixnum)
(add-hook 'emacs-startup-hook (lambda () (setq gc-cons-threshold 8000000)))
;; -------------------------------------
;; Base directory
(setq user-emacs-directory (file-name-directory load-file-name))
;; -------------------------------------
;; Prefer to `load' the newest elisp file
(setq load-prefer-newer t)
;; Disable package.el
(setq package-enable-at-startup nil)
;; -------------------------------------
;; Disable frame bars before they're loaded in
(push '(menu-bar-lines . 0) default-frame-alist)
(push '(tool-bar-lines . 0) default-frame-alist)
(push '(vertical-scroll-bars) default-frame-alist)
;; Do not resize the frame
(setq frame-inhibit-implied-resize t)
;;; early-init.el ends here