blob: 891a3fc0d3ec29ef01c5be090821c664829f5235 (
plain)
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
|
(setq tab-stop-list (number-sequence 4 200 4))
(use-package eglot)
(add-hook 'prog-mode-hook 'subword-mode)
;; Only used to get better eglot snippets.
(use-package yasnippet
:config
(yas-global-mode))
(use-package rustic
:after eglot
:bind (("C-c C-r C-s" . rustic-popup)
("C-c C-r C-n" . kj/rustic-nextest-all))
:config
(defun kj/rustic-nextest-all ()
(interactive)
(setq rustic-cargo-nextest-exec-command "nextest run --run-ignored all")
(rustic-cargo-run-nextest))
(setq
;; eglot seems to be the best option right now.
rustic-lsp-client 'eglot
rustic-format-on-save nil
;; Prevent automatic syntax checking, which was causing lags and stutters.
;; eglot-send-changes-idle-time (* 60 60)
)
:hook
(rustic-mode . eglot-ensure)
;; Disable the annoying doc popups in the minibuffer.
;; (add-hook 'eglot-managed-mode-hook (lambda () (eldoc-mode -1)))
)
(use-package markdown-mode
:ensure t
:mode ("README\\.md\\'" . gfm-mode)
:init (setq markdown-command "multimarkdown"))
(straight-use-package
'(nix-mode :type git :host github :repo "NixOS/nix-mode"))
(use-package nix-mode
:mode "\\.nix\\'")
(use-package ledger-mode
:mode "\\.journal")
(use-package unobtrusive-magit-theme)
(use-package editorconfig
:ensure t
:config
(editorconfig-mode 1))
(use-package tree-sitter
:config
(global-tree-sitter-mode)
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode))
(use-package tree-sitter-langs
:after tree-sitter)
(use-package clojure-mode)
;; Devicetree mode for keyboard configs.
(use-package dts-mode
:mode "\\.keymap\\'")
(use-package yaml-mode
:mode "\\.\(yml|yaml\)\\'")
(use-package ansi-color
:hook (compilation-filter . ansi-color-compilation-filter))
(use-package diff-hl
:config
(global-diff-hl-mode))
(use-package graphviz-dot-mode
:ensure t)
|