refactor: Move user config into modules/
This commit is contained in:
18
modules/home/users/crumb/emacs/early-init.el
Executable file
18
modules/home/users/crumb/emacs/early-init.el
Executable file
@@ -0,0 +1,18 @@
|
||||
;;; early-init.el -*- lexical-binding: t; -*-
|
||||
|
||||
(add-to-list 'load-path (file-name-concat user-emacs-directory "lib"))
|
||||
(require 'syd-constants)
|
||||
|
||||
;; Disable package.el; we use Straight.
|
||||
(setq package-enable-at-startup nil)
|
||||
|
||||
;; Enable use-package statistics for the sake of start-up profiling.
|
||||
(setq use-package-compute-statistics t)
|
||||
|
||||
(setq gc-cons-threshold
|
||||
;; (6 gibibytes)
|
||||
(* 6 (expt 1024 3)))
|
||||
|
||||
;; By default, Emacs will cache compilation artifacts in my personal config
|
||||
;; directory — I'm not keen on that! Redirect it to a dedicated cache directory.
|
||||
(startup-redirect-eln-cache (file-name-concat syd-cache-dir "eln-cache"))
|
||||
Reference in New Issue
Block a user