-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.el
77 lines (61 loc) · 1.88 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
76
77
;;; init.el --- Emacs configuration init
;;; Commentary:
;;; Code:
(setq dotfiles-dir (file-name-directory
(or (buffer-file-name) load-file-name)))
(add-to-list 'load-path "~/bin/")
(add-to-list 'load-path (concat dotfiles-dir "/lisp"))
(add-to-list 'load-path (concat dotfiles-dir "/system_type"))
(setq autoload-file (concat dotfiles-dir "loaddefs.el"))
(setq package-user-dir (concat dotfiles-dir "packages"))
(setq custom-file (concat dotfiles-dir "custom.el"))
(require 'init-package)
(require 'init-defaults)
(require 'init-appearance)
;;(require 'init-ivy)
;; (require 'init-autoinsert)
;; (require 'init-cc)
;; (require 'init-company)
(require 'init-orderless)
(require 'init-corfu)
(require 'init-vertico)
(require 'init-treemacs)
(require 'init-flycheck)
(require 'init-language-server)
;; (require 'init-latex)
;; (require 'init-magit)
;; (require 'init-org)
(require 'init-projectile)
;; (require 'init-rainbow-delimiters)
;; (require 'init-saveplace)
;; (require 'init-switch-window)
;; (require 'init-utils)
(require 'init-yasnippet)
(require 'init-spelling)
(require 'init-git)
(require 'lang-go)
(require 'lang-modes)
(require 'lang-rust)
;; (require 'lang-cpp)
;; (require 'lang-javascript)
;; (require 'lang-python)
;; (require 'lang-ruby)
;; (require 'lang-sql)
;; (require 'lang-swift)
(cond
((eq system-type 'gnu/linux)
(require 'gnu_linux))
((eq system-type 'darwin)
(require 'darwin)))
;; ;system specific configs
;; (setq system-specific-config (concat dotfiles-dir system-name ".el"))
;; (if (file-exists-p system-specific-config) (load system-specific-config))
;; ;os specific configs
;; (setq os-specific-config (concat dotfiles-dir (prin1-to-string system-type) ".el"))
;; (if (file-exists-p os-specific-config) (load os-specific-config))
;; Emacs server
(require 'server)
(unless (server-running-p)
(server-start))
(provide 'init)
;;; init.el ends here