-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
75 lines (53 loc) · 1.79 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
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
;;; -*- lexical-binding: t -*-
;;
;; Global variables and helper functions
;; ----------------------------------------------------
(setq *rex/config-dir* (expand-file-name "config/" user-emacs-directory))
(setq *rex/theme-dir* (expand-file-name "themes/" user-emacs-directory))
(setq *rex/var-dir* (expand-file-name "var/" user-emacs-directory))
(setq *rex/etc-dir* (expand-file-name "etc/" user-emacs-directory))
(defun rex/load (file)
(load (expand-file-name file *rex/config-dir*)))
(defun rex/idle-load (file seconds)
(run-with-idle-timer
seconds nil #'(lambda () (rex/load file))))
;; General settings
;; ----------------------------------------------------
(rex/load "rex-base")
(rex/load "rex-functions")
(rex/load "rex-display-buffer-setup")
;; Keybind system
;; ----------------------------------------------------
(rex/load "rex-keybinds")
(rex/load "rex-hydra")
;; Help and utilities
;; ----------------------------------------------------
(rex/load "rex-helpers")
(rex/load "rex-shell-stuff")
(rex/load "rex-movec")
(rex/load "rex-completion")
;; Builtin packages
;; ----------------------------------------------------
(rex/load "rex-builtins")
;; Editing
;; ----------------------------------------------------
(rex/load "rex-editing")
;; Languages
;; ----------------------------------------------------
(rex/load "rex-lang-support")
(rex/load "rex-lang")
;; Themes and UI
;; ----------------------------------------------------
(rex/load "rex-ui")
;; Org
;; ----------------------------------------------------
(rex/load "rex-org")
;; Miscellaneous
;; ----------------------------------------------------
(rex/load "rex-miscellaneous")
;; Email
;; ----------------------------------------------------
(defun rex/mu4e ()
(interactive)
(load "~/build/rex-email/rex-email.el")
(mu4e))