-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
618 lines (547 loc) · 23.6 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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
;; -*- lexical-binding: t; -*-
;; === Package Management ===========================================================================
; Help in info-display-manual --> use-package --> index
; use (featurep 'builtin-package-name) to figure out the name of a builtin module / package / thingie
; e.g. (featurep 'use-package-core) evals to t
(require 'package)
(use-package use-package-core
:ensure nil ;; This package is built-in, don't try to download it.
:init
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
:config
(package-initialize)
:custom
(use-package-always-ensure t) ;; Always install packages listed
(package-install-upgrade-built-in t) ;; Upgrade built-in packages from package-archives.
)
; use-package support for installing from source.
; Note: was merged into emacs 2023-05-16. Should be emacs 30.
(unless (package-installed-p 'vc-use-package)
(package-vc-install "https://github.com/slotThe/vc-use-package"))
(require 'vc-use-package)
;; === My Functions =================================================================================
(defun lr/copy-current-line-position-to-clipboard ()
"Copy current line in file to clipboard as '</path/to/file>:<line-number>'. Stolen from https://gist.github.com/kristianhellquist/3082383"
(interactive)
(let ((path-with-line-number
(concat (dired-replace-in-string (getenv "HOME") "~" (buffer-file-name)) ":" (number-to-string (line-number-at-pos)))))
(kill-new path-with-line-number)
(message (concat path-with-line-number " copied to clipboard"))))
;; Copied originally from https://thaodan.de/org-clock-frame-title.html
(defvar base-frame-title-format nil
"Like frame-title-format to be used as a base for to modify it by")
(setq base-frame-title-format
'((:eval (if (buffer-file-name)
(abbreviate-file-name (buffer-file-name))
"%b"))
(:eval (if (buffer-modified-p)
" •"))
" — Emacs"))
(defun clock-in-frame-title ()
(if (org-clocking-p)
(setq frame-title-format (list base-frame-title-format
" — 🕓: "
(org-clock-get-clock-string)
" — ⟳:"
org-timer-mode-line-string))
(setq frame-title-format base-frame-title-format)))
;;(run-at-time t 1 'clock-in-frame-title)
;;(add-hook 'org-clock-in-hook 'clock-in-frame-title)
;;(add-hook 'org-clock-out-hook 'clock-in-frame-title)
;;(add-hook 'org-clock-cancel-hook 'clock-in-frame-title)
;; === Emacs core ===================================================================================
(use-package emacs ;; For things without their own /feature/
:ensure nil
:hook
(emacs-startup . toggle-frame-maximized)
(prog-mode . hs-minor-mode) ;; Enable code folding with inbuilt hs
(prog-mode . display-line-numbers-mode)
:bind (
([escape] . keyboard-quit)
("C-=" . text-scale-increase)
("C--" . text-scale-decrease)
:map minibuffer-local-map
([escape] . minibuffer-keyboard-quit)
([escape] . minibuffer-keyboard-quit)
([escape] . minibuffer-keyboard-quit)
([escape] . minibuffer-keyboard-quit)
([escape] . minibuffer-keyboard-quit)
)
:config
(tool-bar-mode 0) ;; Tool bar is ugly
(scroll-bar-mode 0) ;; Scroll bar is also ugly
(if (eq system-type 'darwin)
((setq insert-directory-program "gls")
(menu-bar-mode 1)) ;; Keep the menu bar in MacOS as it integrates with the OS top panel
(menu-bar-mode 0)) ;; Hide menu bar in Linux and Windows
(electric-pair-mode t)
(show-paren-mode 1)
(savehist-mode t) ;; Save minibuffer history
(recentf-mode t) ;; Keep track of open files
(global-auto-revert-mode t) ;; Keep files up-to-date when they change outside Emacs
(pixel-scroll-precision-mode)
:custom
(user-full-name "Luke D Russell")
(user-mail-address "[email protected]")
(window-resize-pixelwise t)
(frame-resize-pixelwise t)
(load-prefer-newer t)
(backup-by-copying t)
(backup-directory-alist `(("." . ,(concat user-emacs-directory "backups"))))
(visible-bell t)
(ring-bell-function 'ignore)
(display-line-numbers-type 'relative)
(vc-follow-symlinks t) ;; Stop bugging me when opening my init.el which is a symlink.
(use-short-answers t)
(inhibit-startup-screen t)
(inhibit-startup-message t)
(inhibit-startup-echo-area-message "lrussell")
(initial-scratch-message nil)
(global-auto-revert-non-file-buffers t) ;; Keep dired up-to-date with files on disk
(scroll-conservatively 101) ;; When scrolling top or bottom of window, don't recenter point
(scroll-margin 5)
(create-lockfiles nil) ;; Don't lock files. Causes my keyboard to restart
(native-comp-async-report-warnings-errors "silent")
(recentf-exclude ;; Ignore these regex paths from recent file list
'("/opt/homebrew"
"/usr/share/emacs/"
"~/.config/emacs/elpa/"
"~/.config/emacs/.cache/"
"~/Library/CloudStorage/"
(recentf-expand-file-name "~/.config/emacs/elpa")
(recentf-expand-file-name "~/.config/emacs/.cache/treemacs-persist-at-last-error")
"/\\(\\(\\(COMMIT\\|NOTES\\|PULLREQ\\|MERGEREQ\\|TAG\\)_EDIT\\|MERGE_\\|\\)MSG\\|\\(BRANCH\\|EDIT\\)_DESCRIPTION\\)\\'")
)
)
;; === Themes ======================================================================================
(use-package ef-themes
:defer t)
(use-package solarized-theme
:defer t)
(use-package modus-themes
:defer t
:custom
(modus-themes-common-palette-overrides
'((bg-line-number-active unspecified)
(bg-line-number-inactive unspecified))
))
(use-package auto-dark
:config (auto-dark-mode t)
:custom
(auto-dark-light-theme 'modus-operandi)
(auto-dark-dark-theme 'modus-vivendi)
)
;; === Fonts ========================================================================================
(cond
((find-font (font-spec :name "Hack Nerd Font"))
(set-face-attribute 'default nil
:font "Hack Nerd Font"
:height 120)))
;; (cond
;; ((find-font (font-spec :name "Hack Nerd Font Mono"))
;; (set-face-attribute 'default nil
;; :font "Hack Nerd Font Mono"
;; :height 120)))
;; === Visuals ======================================================================================
(use-package indent-bars
:vc (:fetcher github :repo jdtsmith/indent-bars)
:hook
(prog-mode . indent-bars-mode)
:custom
(indent-bars-prefer-character t)
(indent-bars-treesit-support t)
(indent-bars-color-by-depth nil)
(indent-bars-highlight-current-depth '(:face default :blend 0.4))
:defer t)
(use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode)
:defer t)
(use-package dashboard
:config
(dashboard-setup-startup-hook)
:custom
(dashboard-startup-banner 'official)
(dashboard-banner-logo-title nil)
(dashboard-center-content t)
(dashboard-vertically-center-content t)
(dashboard-icon-type 'nerd-icons)
(dashboard-set-heading-icons t)
(dashboard-set-file-icons t)
(dashboard-set-footer nil)
(dashboard-projects-backend 'project-el)
(dashboard-display-icons-p t)
(dashboard-items '((recents . 10) (projects . 10) (bookmarks . 10)))
)
(use-package mini-echo
:config
(mini-echo-mode)
:custom
(mini-echo-define-segments (
:long ("major-mode" "buffer-name" "vcs" "buffer-position" "flymake" "process" "selection-info" "narrow" "macro" "profiler" "repeat")
:short ("buffer-name-short" "buffer-position" "process" "profiler" "selection-info" "narrow" "macro" "repeat"))
)
)
(use-package visual-fill-column
;; I like having text centred when the window is really wide. I don't like turning my head left to read the
;; text of ultrawide frames.
:config
(global-visual-fill-column-mode)
:custom
(visual-fill-column-center-text t)
(fill-column 150)
)
;; === Workspace Management =========================================================================
(use-package tabspaces ;; Each tab is a set of isolated buffers
:vc (tabspaces :url "https://github.com/mclear-tools/tabspaces")
:hook (after-init . tabspaces-mode)
)
;; === Editing Support ==============================================================================
(use-package which-key ;; Discover keybinds with popup
:after evil
:config (which-key-mode)
:custom
(which-key-max-display-columns 5)
(which-key-add-column-padding 10)
)
(use-package vertico ;; Minibuffer completion UI
:init (vertico-mode)
:custom
(vertico-cycle t)
(read-buffer-completion-ignore-case t)
(read-file-name-completion-ignore-case t)
)
(use-package marginalia ;; Docstrings in minibuffer margin
:after vertico
:init (marginalia-mode)
)
(use-package corfu ;; Intellisense-style completion popups
:init
(global-corfu-mode)
(corfu-popupinfo-mode)
:custom
(corfu-auto t)
(corfu-cycle t)
(corfu-quit-at-boundary)
)
(use-package orderless ;; Stop caring about the order of search terms in minibuffer filtering
:custom
(completion-styles '(orderless basic)) (completion-category-overrides
'((file (styles basic partial-completion))))
)
(use-package consult
;; Replace bindings. Lazily loaded due by `use-package'.
:bind (;; C-c bindings in `mode-specific-map'
("C-c M-x" . consult-mode-command)
("C-c h" . consult-history)
("C-c k" . consult-kmacro)
("C-c m" . consult-man)
("C-c i" . consult-info)
([remap Info-search] . consult-info)
;; C-x bindings in `ctl-x-map'
("C-x M-:" . consult-complex-command) ;; orig. repeat-complex-command
("C-x b" . consult-buffer) ;; orig. switch-to-buffer
("C-x 4 b" . consult-buffer-other-window) ;; orig. switch-to-buffer-other-window
("C-x 5 b" . consult-buffer-other-frame) ;; orig. switch-to-buffer-other-frame
("C-x t b" . consult-buffer-other-tab) ;; orig. switch-to-buffer-other-tab
("C-x r b" . consult-bookmark) ;; orig. bookmark-jump
("C-x p b" . consult-project-buffer) ;; orig. project-switch-to-buffer
;; Custom M-# bindings for fast register access
("M-#" . consult-register-load)
("M-'" . consult-register-store) ;; orig. abbrev-prefix-mark (unrelated)
("C-M-#" . consult-register)
;; Other custom bindings
("M-y" . consult-yank-pop) ;; orig. yank-pop
;; M-g bindings in `goto-map'
("M-g e" . consult-compile-error)
("M-g f" . consult-flymake) ;; Alternative: consult-flycheck
("M-g g" . consult-goto-line) ;; orig. goto-line
("M-g M-g" . consult-goto-line) ;; orig. goto-line
("M-g o" . consult-outline) ;; Alternative: consult-org-heading
("M-g m" . consult-mark)
("M-g k" . consult-global-mark)
("M-g i" . consult-imenu)
("M-g I" . consult-imenu-multi)
;; M-s bindings in `search-map'
("M-s d" . consult-find) ;; Alternative: consult-fd
("M-s c" . consult-locate)
("M-s g" . consult-grep)
("M-s G" . consult-git-grep)
("M-s r" . consult-ripgrep)
("M-s l" . consult-line)
("M-s L" . consult-line-multi)
("M-s k" . consult-keep-lines)
("M-s u" . consult-focus-lines)
;; Isearch integration
("M-s e" . consult-isearch-history)
:map isearch-mode-map
("M-e" . consult-isearch-history) ;; orig. isearch-edit-string
("M-s e" . consult-isearch-history) ;; orig. isearch-edit-string
("M-s l" . consult-line) ;; needed by consult-line to detect isearch
("M-s L" . consult-line-multi) ;; needed by consult-line to detect isearch
;; Minibuffer history
:map minibuffer-local-map
("M-s" . consult-history) ;; orig. next-matching-history-element
("M-r" . consult-history)) ;; orig. previous-matching-history-element
;; Enable automatic preview at point in the *Completions* buffer. This is
;; relevant when you use the default completion UI.
:hook (completion-list-mode . consult-preview-at-point-mode)
;; The :init configuration is always executed (Not lazy)
:init
;; Optionally configure the register formatting. This improves the register
;; preview for `consult-register', `consult-register-load',
;; `consult-register-store' and the Emacs built-ins.
(setq register-preview-delay 0.5
register-preview-function #'consult-register-format)
;; Optionally tweak the register preview window.
;; This adds thin lines, sorting and hides the mode line of the window.
(advice-add #'register-preview :override #'consult-register-window)
;; Use Consult to select xref locations with preview
(setq xref-show-xrefs-function #'consult-xref
xref-show-definitions-function #'consult-xref)
;; Configure other variables and modes in the :config section,
;; after lazily loading the package.
:config
;; Optionally configure preview. The default value
;; is 'any, such that any key triggers the preview.
;; (setq consult-preview-key 'any)
;; (setq consult-preview-key "M-.")
;; (setq consult-preview-key '("S-<down>" "S-<up>"))
;; For some commands and buffer sources it is useful to configure the
;; :preview-key on a per-command basis using the `consult-customize' macro.
(consult-customize
consult-theme :preview-key '(:debounce 0.2 any)
consult-ripgrep consult-git-grep consult-grep
consult-bookmark consult-recent-file consult-xref
consult--source-bookmark consult--source-file-register
consult--source-recent-file consult--source-project-recent-file
;; :preview-key "M-."
:preview-key '(:debounce 0.4 any))
;; Optionally configure the narrowing key.
;; Both < and C-+ work reasonably well.
(setq consult-narrow-key "<") ;; "C-+"
;; Optionally make narrowing help available in the minibuffer.
;; You may want to use `embark-prefix-help-command' or which-key instead.
;; (define-key consult-narrow-map (vconcat consult-narrow-key "?") #'consult-narrow-help)
;; By default `consult-project-function' uses `project-root' from project.el.
;; Optionally configure a different project root function.
;;;; 1. project.el (the default)
;; (setq consult-project-function #'consult--default-project--function)
;;;; 2. vc.el (vc-root-dir)
;; (setq consult-project-function (lambda (_) (vc-root-dir)))
;;;; 3. locate-dominating-file
;; (setq consult-project-function (lambda (_) (locate-dominating-file "." ".git")))
;;;; 4. projectile.el (projectile-project-root)
;; (autoload 'projectile-project-root "projectile")
;; (setq consult-project-function (lambda (_) (projectile-project-root)))
;;;; 5. No project support
;; (setq consult-project-function nil)
)
;; === Modal editing ================================================================================
(use-package evil
:init
(setq evil-want-integration t)
(setq evil-want-keybinding nil)
:config
(evil-mode 1)
(evil-set-undo-system 'undo-redo) ;; Only because Emacs 28+ has this built in
:custom
(evil-split-window-below t)
(evil-vsplit-window-right t)
)
(use-package evil-collection
:after evil
:config (evil-collection-init)
)
;; === Leader Key Bindings =====================================================================================
(use-package general
:config
(general-evil-setup)
(general-create-definer lr/leader-def
;; set up 'SPC' as the global leader key
:states '(normal insert visual emacs)
:keymaps 'override
:prefix "SPC" ;; set leader
:global-prefix "M-SPC" ;; access leader in insert mode
)
;; format: off
(lr/leader-def ;; Leader sequences
"b" '(:ignore t :wk "buffers")
"b s" '(switch-to-buffer :wk "switch to named buffer")
"b m" '(consult-buffer :wk "menu for buffers")
"b d" '(kill-buffer-and-window :wk "delete buffer")
"b i" '(ibuffer :wk "IBuffer")
"b n" '(next-buffer :wk "next buffer")
"b p" '(previous-buffer :wk "previous buffer")
"b P" '(consult-project-buffer :wk Project buffers)
"w" '(:ignore t :wk "windows")
"w v" '(evil-window-vnew :wk "vertical split")
"w h" '(evil-window-new :wk "horizontal split")
"w d" '(evil-window-delete :wk "delete")
"w n" '(evil-window-next :wk "next")
"w p" '(evil-window-prev :wk "prev")
"w m" '(delete-other-windows :wk "maximise current")
"w r" '(evil-window-rotate-upwards :wk rotate)
"w T" '(tear-off-window :wk "Tear off window to new frame")
"w <up>" '(evil-window-up :wk "up")
"w <down>" '(evil-window-down :wk "down")
"w <left>" '(evil-window-left :wk "left")
"w <right>" '(evil-window-right :wk "right")
"v" '(:ignore t :wk "version control")
"v m" '(magit :wk "magit")
"v h" '(magit-log-buffer-file :wk "history of file")
"e" '(:ignore t :wk "emacs")
"e c" '(:ignore t :wk "config")
"e c l" '((lambda () (interactive) (load-file user-init-file)) :wk "reload user config")
"e c o" '((lambda () (interactive) (find-file user-init-file)) :wk "open user config")
"e o" '(describe-variable 'system-configuration-options) :wk "emacs build options"
"e p" '(list-packages :wk "list all pacakges")
"e u" '(package-menu-filter-upgradable :wk "show packages that can be upgraded")
"o" '(:ignore t :wk "open")
"o d" '(dirvish :wk "open dirvish")
"o s" '(dirvish-side :wk "open dirvish to side")
"o D" '(dashboard-open :wk "dashboard")
"o t" '(treemacs :wk "treemacs")
"o m" '(magit :wk "magit")
"o f" '(consult-find :wk "file")
"o a" '(org-agenda :wk "agenda")
"q" '(:ignore t :wk "quit")
"q r" '(restart-emacs :wk "Restart emacs")
"q n" '(restart-emacs-start-new-emacs :wk "restart to New emacs")
"q q" '(save-buffers-kill-terminal :wk "Quit emacs")
"u" '(:ignore t :wk "ui")
"u m" '(toggle-menu-bar-mode-from-frame :wk "Menu bar")
"u M" '(org-modern-mode :wk "Org-Modern mode")
"u l" '(lr/cycle-line-number-style :wk "Line numbers")
"u F" '(toggle-frame-fullscreen :wk "Fullscreen")
"u t" '(consult-theme :wk "theme preview / change")
"h" '(:ignore t :wk "(h)elp")
"h a" '(apropos :wk "(a)propos")
"h c" '(describe-command :wk "Describe Command")
"h f" '(describe-function :wk "Describe Function")
"h F" '(describe-face :wk "Describe Face")
"h v" '(describe-variable :wk "Describe Variable")
"h k" '(describe-key :wk "Describe Key")
"h s" '(describe-symbol :wk "Describe Symbol")
"h i" '(info-display-manual :wk "Display Info manual")
"h m" '(info-emacs-manual :wk "emacs manual")
"h q" '(help-quick-toggle :wk "quick help menu")
"h o" '(org-info :wk "Org manual"))
;; format: on
)
;; === Version Control Systems ======================================================================
(use-package magit)
;; === Org Mode ======================================================================
(use-package org
:hook (org-mode . visual-line-mode)
:custom
(org-directory "~/Notes/")
(org-agenda-files (list org-directory))
(org-refile-targets '((org-agenda-files :maxlevel . 5)))
(org-refile-use-outline-path t)
(org-outline-path-complete-in-steps nil)
(org-startup-indented t)
(org-hide-emphasis-markers t)
(org-id-link-to-org-use-id t)
;; (org-pretty-entities t)
(org-todo-keywords
'((sequence "TODO(t!)" "SOMEDAY(s!)" "WAITING(w@)" "|" "DONE(d!)" "MOVED(m@)" "CANCELLED(c@)")))
(org-babel-load-languages '((lua . t) (python . t) (shell . t) (emacs-lisp . t)))
:bind (:map org-mode-map ("C-L" . org-store-link)))
(use-package org-modern
:hook (org-mode . global-org-modern-mode)
:custom (org-modern-hide-stars " ")
)
(use-package org-appear
:hook
(org-mode . org-appear-mode)
(org-mode . (lambda ()
(add-hook 'evil-insert-state-entry-hook #'org-appear-manual-start nil t)
(add-hook 'evil-insert-state-exit-hook #'org-appear-manual-stop nil t)))
:custom
(org-appear-trigger 'manual)
(org-appear-autolinks t)
(org-appear-autosubmarkers t)
(org-appear-autoentities)
(org-appear-autokeywords)
(org-appear-inside-latex)
)
(use-package org-reverse-datetree
:custom
(org-reverse-datetree-level-formats
'("%Y" ; year
(lambda (time) (format-time-string "%Y-%m %B" (org-reverse-datetree-monday time))) ; month
"%Y W%W" ; week
"%Y-%m-%d %A" ; date
)) )
;; === Languages ====================================================================================
;; Auto install and use all tree-sitter grammars
;; Run =treesit-auto-install-all= to install the grammars
(use-package treesit-auto
:custom
(treesit-auto-install t)
:config
(global-treesit-auto-mode)
(treesit-auto-add-to-auto-mode-alist 'all))
(use-package eglot
:defer t
;; Add your programming modes here to automatically start Eglot,
;; assuming you have the respective LSP server installed.
;; e.g. rust-analyzer to use Eglot with `rust-mode'.
:hook (
(python-ts-mode . eglot-ensure)
))
(use-package eglot-booster
;; Requires =eglot-lsp-booster= is installed and in emacs path.
:vc (:fetcher github :repo jdtsmith/eglot-booster)
:after eglot
:config (eglot-booster-mode))
;; Markdown
(use-package markdown-mode
;; These extra modes help clean up the Markdown editing experience.
;; `visual-line-mode' turns on word wrap and helps editing commands
;; work with paragraphs of text. `flyspell-mode' turns on an
;; automatic spell checker.
:hook
((markdown-mode . visual-line-mode) (markdown-mode . flyspell-mode))
:init
(setq markdown-command "multimarkdown")
)
(use-package python
:after eglot
)
(use-package fish-mode)
(use-package yaml)
;; Try yaml-pro
;; === File Management ==============================================================================
(use-package treemacs
:config (treemacs-project-follow-mode) (treemacs-follow-mode)
:defer t)
(use-package treemacs-evil
:after (treemacs evil)
:defer t)
(use-package treemacs-magit
:after (treemacs magit)
:defer t)
(use-package dirvish
:config (dirvish-override-dired-mode)
:defer t)
;; === Shells =======================================================================================
(use-package exec-path-from-shell
:if (not (eq system-type 'windows-nt))
:config (exec-path-from-shell-initialize))
;; === Customize Stuff ==============================================================================
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(eat org-reverse-datetree exec-path-from-shell treemacs-magit treemacs-evil treemacs yaml fish-mode markdown-mode eglot-booster treesit-auto org-appear org-modern magit general evil-collection evil consult orderless corfu marginalia vertico which-key tabspaces visual-fill-column doom-modeline mini-echo dashboard rainbow-delimiters indent-bars auto-dark modus-themes solarized-theme ef-themes vc-use-package))
'(package-vc-selected-packages
'((vc-use-package :vc-backend Git :url "https://github.com/slotThe/vc-use-package"))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)