-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
35 lines (29 loc) · 1.13 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;;; init.el --- dotemacs's configuration. -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
(when (version< emacs-version "29.1")
(error "Detected Emacs %s. Emacs version should be 29.1 or higher" emacs-version))
(setq gc-cons-threshold most-positive-fixnum)
(add-hook 'emacs-startup-hook (lambda () (setq gc-cons-threshold (* 20 1024 1024))))
(defvar dotemacs-dir user-emacs-directory
"The root dir of the Emacs dotemacs distribution.")
(defvar dotemacs-local-dir (expand-file-name ".local" dotemacs-dir)
"Root directory for local Emacs files.")
(defvar dotemacs-cache-dir (expand-file-name ".cache" dotemacs-dir)
"Where cache files are stored.")
(dolist (dir '("site-lisp" "lisp"))
(push (expand-file-name dir dotemacs-dir) load-path))
(let ((default-directory (expand-file-name "site-lisp" dotemacs-dir)))
(normal-top-level-add-subdirs-to-load-path))
(require 'init-custom)
(require 'init-base)
(require 'init-packages)
(require 'init-keybinds)
(require 'init-ui)
(require 'init-editing)
(require 'init-completion)
(require 'init-shell)
(require 'init-org)
(require 'init-programming)
(require 'init-lang)
;;; init.el ends here