Mercurial > hg > dotemacs
changeset 216:f676a67d74c9
rustic: set some basic configs
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Tue, 04 Jul 2023 19:23:23 -0400 |
parents | 0ef9d5be5151 |
children | 540cc92e6549 |
files | dotemacs.el |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dotemacs.el +++ b/dotemacs.el @@ -56,6 +56,23 @@ ;; And show me the image right there once you're done. +;; https://robert.kra.hn/posts/rust-emacs-setup/ +(use-package rustic + :ensure + :bind (:map rustic-mode-map + ("C-c C-d" . eldoc-doc-buffer) + ("C-c C-n" . flymake-goto-next-error) + ("C-c C-p" . flymake-goto-prev-error) + ("C-c C-c l" . flycheck-list-errors) + ("C-c C-c a" . lsp-execute-code-action) + ("C-c C-c r" . lsp-rename) + ("C-c C-c q" . lsp-workspace-restart) + ("C-c C-c Q" . lsp-workspace-shutdown) + ("C-c C-c s" . lsp-rust-analyzer-status)) + :config + (company-mode) + (eglot-inlay-hints-mode nil)) + ;; Thanks to dale of #emacs (defun jordi-find-file-with-mode (mode) "Calls `find-file' to open a file with the given MODE."