diff options
author | Franck Cuny <franck@fcuny.net> | 2022-10-17 18:59:27 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-10-17 18:59:27 -0700 |
commit | 3701056138aefc571e3e44fad29d729dee340a77 (patch) | |
tree | ac668d945339a2eabff115bf66ef5229a0993af2 | |
parent | ref(text): set abbrev-file-name (diff) | |
download | emacs.d-3701056138aefc571e3e44fad29d729dee340a77.tar.gz |
Revert "ref(rust): delete the module"
This reverts commit cecfed659a53c1b72ac16ab5e2bfa4170067bc81.
-rw-r--r-- | emacs/custom/my-lang-rust.el | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/emacs/custom/my-lang-rust.el b/emacs/custom/my-lang-rust.el new file mode 100644 index 0000000..e6374a7 --- /dev/null +++ b/emacs/custom/my-lang-rust.el @@ -0,0 +1,24 @@ +;;; my-lang-rust.el --- configure emacs for rust -*- lexical-binding: t -*- +;; Author: Franck Cuny <franck@fcuny.net> + +;;; Commentary: + +;;; Code: + +(require 'rustic) +(require 'lsp-rust) + +(setq lsp-rust-analyzer-cargo-watch-enable t) +(setq lsp-rust-analyzer-proc-macro-enable t) +(setq lsp-rust-full-docs t) +(setq lsp-rust-server 'rust-analyzer) + +(setq rustic-format-on-save t) +(setq rustic-lsp-client 'lsp-mode) +(setq rustic-lsp-server 'rust-analyzer) + +(add-hook 'rusti-mode-hook #'lsp-deferred) + +(provide 'my-lang-rust) + +;;; my-lang-rust.el ends here |