summary refs log tree commit diff
path: root/emacs/custom/my-lang-rust.el
blob: eb8e9a5c309f775052135f4e3808eeaf6f4f534b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;;; 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 rustic-lsp-server 'rust-analyzer)
(setq rustic-lsp-client 'lsp-mode)
(setq rustic-format-on-save t)

(add-hook 'rustic-mode-hook #'lsp-rust-analyzer-inlay-hints-mode)

(provide 'my-lang-rust)

;;; my-lang-rust.el ends here