forked from jimenezrick/emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
36 lines (29 loc) · 1.3 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
36
(add-to-list 'load-path (expand-file-name "elisp" user-emacs-directory))
(require 'my-utils)
(load (expand-file-name "gc" user-emacs-directory))
(load (expand-file-name "repos" user-emacs-directory))
(package-initialize)
;; Trigger a full fresh install
(when (not (package-installed-p 'evil))
(package-refresh-contents)
(setq fresh-install t))
(eval-when-compile
(require 'use-package))
(setq use-package-always-ensure t)
(setq use-package-compute-statistics t) ; Use later (use-package-report)
(load (expand-file-name "settings" user-emacs-directory))
(load (expand-file-name "packages" user-emacs-directory))
(load (expand-file-name "packages-completion" user-emacs-directory))
(load (expand-file-name "packages-haskell" user-emacs-directory))
(load (expand-file-name "packages-rust" user-emacs-directory))
(load (expand-file-name "packages-go" user-emacs-directory))
(load (expand-file-name "packages-python" user-emacs-directory))
(load (expand-file-name "packages-devops" user-emacs-directory))
(load (expand-file-name "packages-themes" user-emacs-directory))
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(when (file-exists-p custom-file)
(load custom-file))
;; Post-install setup
(when (bound-and-true-p fresh-install)
(treesit-auto-install-all)
(all-the-icons-install-fonts))