-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.el
More file actions
85 lines (67 loc) · 2.2 KB
/
init.el
File metadata and controls
85 lines (67 loc) · 2.2 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
;; init.el -*- lexical-binding: t; -*-
;; Reset GC threshold after startup
(add-hook 'emacs-startup-hook
(lambda () (setq gc-cons-threshold (* 100 1024 1024)))) ;; 100MB
;; Show load time in minibuffer
(add-hook 'emacs-startup-hook
(lambda () (message "Emacs ready in %s with %d GCs." (emacs-init-time) gcs-done)))
;; Add all necessary directories to load-path
(dolist (dir '("modules" "lisp"))
(add-to-list 'load-path (expand-file-name dir user-emacs-directory)))
;; Load Package Manager
(require 'package-manager)
;; Load custom configs
(let ((custom-file (expand-file-name "custom.el" user-emacs-directory)))
(when (file-exists-p custom-file)
(load custom-file)))
;; Load Core
(require 'core)
;; Load Tree-sitter
(require 'treesitter)
;; Load my custom functions
(require 'functions)
;; Load Dired, use custom one
(require 'vhtbk-dired)
;; Load UI
(unless (bound-and-true-p vhtbk/disable-ui)
(require 'ui))
;; Load vertico, orderless, marginalia, corfu
(unless (bound-and-true-p vhtbk/disable-completion)
(require 'completion))
;; Load consult
(unless (bound-and-true-p vhtbk/disable-search)
(require 'search))
;; Load projectile
(unless (bound-and-true-p vhtbk/disable-project)
(require 'vhtbk-project))
;; Load keybinds
(unless (bound-and-true-p vhtbk/disable-keybinds)
(require 'keybinds))
;; Load DevOps
(unless (bound-and-true-p vhtbk/disable-dev)
(require 'dev))
(unless (bound-and-true-p vhtbk/disable-ops)
(require 'ops))
;; Load Org
(unless (bound-and-true-p vhtbk/disable-org)
(require 'org-config))
(unless (bound-and-true-p vhtbk/disable-roam)
(require 'vhtbk-roam))
;; Load AI
(unless (bound-and-true-p vhtbk/disable-ai)
(require 'ai))
;;
;; Done.
;;
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages nil))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)