-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
231 lines (214 loc) · 3.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
;;; -*- lexical-binding: t -*-
(add-to-list 'load-path (file-truename (concat user-emacs-directory "core/")))
(add-to-list 'load-path (file-truename (concat user-emacs-directory "packages/")))
(add-to-list 'load-path (file-truename (concat user-emacs-directory "lisp/")))
(require 'cl-macs)
(require 'cl-lib)
(require 'transient)
(require 'seq)
(require 'my-globals)
(require 'lib-elisp)
(require 'lib-util)
;; Load core modules.
(dolist (file '("defaults.el" "package-manager.el"))
(load (file-name-concat user-emacs-directory "core" file) nil 'no-message))
(defun my/load-extra-libs ()
(require 'lib-adb)
(require 'lib-bak)
(require 'lib-fs)
(require 'lib-metabase)
(require 'lib-media)
(require 'lib-pdf)
(require 'lib-sys))
(add-hook 'after-init-hook #'my/load-extra-libs)
;;; Core packages
(lib-util/require
pkg-general ; Sync load before all other packages.
pkg-org ; Org must be loaded before the bundled org-mode one.
pkg-evil
pkg-evil-collection
pkg-magit
pkg-undo-fu
pkg-xclip)
;;; Built-in packages
(lib-util/require
pkg-autorevert
pkg-bookmark
pkg-compile
pkg-dired
pkg-eldoc
pkg-emacs
pkg-eshell
pkg-goto-addr
pkg-hl-line
pkg-image-dired
pkg-isearch
pkg-ispell
pkg-outline
pkg-paren
pkg-proced
pkg-project
pkg-recentf
pkg-savehist
pkg-saveplace
pkg-tab-bar
pkg-tempo
pkg-theme
pkg-tramp
pkg-transient
pkg-treesit
pkg-winner)
;;; Emacs Lisp development libraries
(lib-util/require
pkg-dash
pkg-f
pkg-plz
pkg-posframe
pkg-promise
pkg-request
pkg-s
pkg-graphql
pkg-shrink-path
pkg-ts)
;;; Completion systems
(lib-util/require
pkg-consult
pkg-corfu
pkg-embark
pkg-orderless
pkg-vertico)
;;; UI packages
(lib-util/require
pkg-all-the-icons
pkg-all-the-icons-dired
pkg-anzu
pkg-battery
pkg-ctrlf
pkg-dimmer
pkg-diredfl
pkg-doom-modeline
pkg-doom-themes
pkg-ef-themes
pkg-eros
pkg-helpful
pkg-hide-mode-line
pkg-highlight-parentheses
pkg-idle-highlight-mode
pkg-kind-icon
pkg-magit-delta
pkg-marginalia
pkg-page-break-lines
pkg-paren-face
pkg-pulsar
pkg-spacious-padding
pkg-vertico-posframe
pkg-xterm-color)
;;; Packages that enhance text editing
(lib-util/require
pkg-aggressive-indent
pkg-apheleia
pkg-drag-stuff
pkg-emmet-mode
pkg-evil-cleverparens
pkg-evil-matchit
pkg-evil-nerd-commenter
pkg-evil-smartparens
pkg-evil-surround
pkg-flycheck
pkg-flyspell-correct
pkg-gptel
pkg-jinx
pkg-quickrun
pkg-smartparens
pkg-xref)
;;; File/language modes
(lib-util/require
pkg-cargo
pkg-cider
pkg-clj-refactor
pkg-clojure-mode
pkg-csv-mode
pkg-dockerfile-mode
pkg-flycheck-clj-kondo
pkg-flycheck-ledger
pkg-flycheck-rust
pkg-geiser
pkg-git-modes
pkg-gnuplot
pkg-go-mode
pkg-gotest
pkg-graphql-mode
pkg-groovy-mode
pkg-haskell-mode
pkg-js2-mode
pkg-just-mode
pkg-kbd-mode
pkg-kotlin-mode
pkg-ledger-mode
pkg-lua-mode
pkg-markdown-mode
pkg-nim-mode
pkg-nix-mode
pkg-php-mode
pkg-plantuml-mode
pkg-protobuf-mode
pkg-rust-mode
pkg-terraform-mode
pkg-tree-sitter
pkg-tree-sitter-langs
pkg-tsi
pkg-typescript-mode
pkg-vimrc-mode
pkg-web-mode
pkg-yaml-mode)
;;; LSP (Language Server Protocol)
(lib-util/require
pkg-dap-mode
pkg-eglot
pkg-lsp-bridge
pkg-lsp-java
pkg-lsp-mode
pkg-lsp-ui)
;;; Org mode
(lib-util/require
pkg-evil-org
pkg-htmlize
pkg-ob-async
pkg-org-cliplink
pkg-org-download
pkg-org-make-toc
pkg-org-modern
pkg-org-roam)
;;; Miscellaneous packages
(lib-util/require
pkg-ace-window
pkg-browse-at-remote
pkg-cider-storm
pkg-command-log-mode
pkg-consult-dir
pkg-daemons
pkg-deadgrep
pkg-devdocs-lookup
pkg-dired-du
pkg-dirvish
pkg-eat
pkg-explain-pause-mode
pkg-golden-ratio
pkg-hnreader
pkg-magit-forge
pkg-openwith
pkg-pdf-tools
pkg-popper
pkg-speed-type
pkg-status-mobile
pkg-sudo-edit
pkg-svg-clock
pkg-synosaurus
pkg-timer-revert
pkg-trashed
pkg-visual-fill-column
pkg-vterm
pkg-wgrep
pkg-wordnut
pkg-zones)
(require 'keybindings)