diff options
Diffstat (limited to 'custom')
| -rw-r--r-- | custom/jao-custom-programming.el | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/custom/jao-custom-programming.el b/custom/jao-custom-programming.el index 2fd1212..6fa5221 100644 --- a/custom/jao-custom-programming.el +++ b/custom/jao-custom-programming.el @@ -112,6 +112,7 @@ (transient-define-prefix jao-transient-flymake () ["Flymake" ("d" "show diagnostics" flymake-show-buffer-diagnostics) + ("D" "show project diagnostics" flymake-show-project-diagnostics) ("i" "show diagnostic" flymake-show-diagnostic) ("n" "next error" flymake-goto-next-error) ("p" "previous error" flymake-goto-prev-error) @@ -306,12 +307,17 @@ (use-package rust-mode :ensure t :demand t - :hook (;; (rust-mode . hs-minor-mode) - (rust-mode . smartparens-mode)) + :hook (rust-mode . jao-rust-mode-hook) :init (setq rust-mode-treesitter-derive nil) :config (use-package smartparens-rust :demand t) + + (defun jao-rust-mode-hook () + (smartparens-mode 1) + ;; (hs-minor-mode) + (setq-local completion-styles '(basic substring partial-completion emacs22))) + :bind (:map rust-mode-map ("<f3>" . hs-toggle-hiding) ("C-c a" . eglot-code-actions) @@ -329,7 +335,8 @@ (jao-define-attached-buffer '(major-mode . rustic-compilation-mode) 25) :custom (rustic-cargo-use-last-stored-arguments t) - (rustic-analyzer-command '("rust-analyzer"))) + (rustic-analyzer-command '("rust-analyzer")) + :bind (:map rustic-mode-map (("C-c C-c d" . rustic-cargo-build-doc)))) (use-package rust-playground :ensure t) |
