2024-11-10 11:50:21 +01:00
|
|
|
(defvar materus/init-early t) ; Var to ensure early-init loaded
|
|
|
|
(setq materus/init-early t) ; Probably useless
|
2023-11-15 00:07:16 +01:00
|
|
|
|
|
|
|
(setq initial-major-mode 'fundamental-mode)
|
2024-11-10 11:50:21 +01:00
|
|
|
(setq native-comp-async-report-warnings-errors nil)
|
|
|
|
(setq package-enable-at-startup nil)
|
|
|
|
|
2023-11-15 00:07:16 +01:00
|
|
|
(setq native-comp-speed 3)
|
2023-11-20 14:14:23 +01:00
|
|
|
(add-hook 'emacs-startup-hook (lambda () (package-initialize)
|
|
|
|
(setq gc-cons-threshold 100000000 ; ~100mb
|
|
|
|
gc-cons-percentage 0.1)
|
|
|
|
))
|
2023-11-15 00:07:16 +01:00
|
|
|
(unless (daemonp)
|
|
|
|
(setq gc-cons-threshold most-positive-fixnum ; 2^61 bytes
|
|
|
|
gc-cons-percentage 0.6)
|
2024-10-30 14:09:43 +01:00
|
|
|
|
2023-11-15 00:07:16 +01:00
|
|
|
|
|
|
|
(advice-add #'tty-run-terminal-initialization :override #'ignore)
|
|
|
|
(add-hook 'window-setup-hook
|
|
|
|
(lambda ()
|
|
|
|
(advice-remove #'tty-run-terminal-initialization #'ignore)
|
|
|
|
(tty-run-terminal-initialization (selected-frame) nil t)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2024-10-28 16:31:39 +01:00
|
|
|
|
2024-11-10 11:50:21 +01:00
|
|
|
(when (boundp 'native-comp-eln-load-path) ; Change dir for eln-cache
|
|
|
|
(startup-redirect-eln-cache (expand-file-name "/var/eln-cache/" user-emacs-directory)))
|
|
|
|
|
2024-10-28 16:31:39 +01:00
|
|
|
(when (and (fboundp 'startup-redirect-eln-cache)
|
|
|
|
(fboundp 'native-comp-available-p)
|
|
|
|
(native-comp-available-p))
|
|
|
|
(startup-redirect-eln-cache
|
|
|
|
(convert-standard-filename
|
|
|
|
(expand-file-name "var/eln-cache/" user-emacs-directory))))
|
2024-11-03 14:03:17 +01:00
|
|
|
|
|
|
|
(setq auto-save-default nil)
|
|
|
|
(setq backup-directory-alist
|
2024-11-10 11:50:21 +01:00
|
|
|
`((".*" . ,(concat user-emacs-directory "var/backups/")))) ; Change backup and auto save dir to var dir
|
|
|
|
(setq auto-save-file-name-transforms
|
|
|
|
`((".*" ,(concat user-emacs-directory "var/recovery/") t)))
|
|
|
|
(setq auto-save-list-file-prefix (concat user-emacs-directory "var/auto-save/sessions/"))
|
|
|
|
(setq custom-file (concat user-emacs-directory "etc/custom.el"))
|