-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
27 lines (20 loc) · 867 Bytes
/
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
;; -*- lexical-binding: t; -*-
(defconst nonk/windows? (and (string-match-p "AppData\\\\Roaming" (getenv "HOME")) t))
(defconst nonk/home
(if nonk/windows?
(concat "C:/Users/" (user-login-name) "/")
(expand-file-name "~/"))
"Should be used instead of `~' in filenames for portability.")
(defconst nonk/module-order
'("init" "straight" "config" "projects" "linting" "completions"
"visual" "treemacs" "coding" "keys" "modes" "finalize")
"The order in which init-file modules are loaded. See `nonk/load-init'.")
(require 'bytecomp)
(require 'comp)
(setq native-comp-async-report-warnings-errors 'silent)
(defun nonk/load-init ()
"Load the init-file in parts called modules."
(interactive "P")
(dolist (module nonk/module-order)
(load-file (expand-file-name (concat "elisp/" module ".el") user-emacs-directory))))
(nonk/load-init)