diff options
| author | jao <jao@gnu.org> | 2026-03-08 17:52:45 +0000 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-03-08 17:52:45 +0000 |
| commit | 13b461b2d344883cc0f086b5a1f8b4cad0fa0823 (patch) | |
| tree | d09e4e577b69dc53da0daf66039716822da82e42 | |
| parent | f6689901678240caadb67079b980d271c627ce3e (diff) | |
| download | elibs-13b461b2d344883cc0f086b5a1f8b4cad0fa0823.tar.gz elibs-13b461b2d344883cc0f086b5a1f8b4cad0fa0823.tar.bz2 | |
rust nits
| -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) |
