diff options
Diffstat (limited to 'users/glittershark/emacs.d/rust.el')
-rw-r--r-- | users/glittershark/emacs.d/rust.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/users/glittershark/emacs.d/rust.el b/users/glittershark/emacs.d/rust.el new file mode 100644 index 000000000000..540ffcd82e98 --- /dev/null +++ b/users/glittershark/emacs.d/rust.el @@ -0,0 +1,8 @@ +;;; ../code/depot/users/glittershark/emacs.d/rust.el -*- lexical-binding: t; -*- + +(defun grfn/rust-setup () + (setq lsp-rust-server 'rust-analyzer) + (rust-enable-format-on-save) + (lsp)) + +(add-hook 'rust-mode-hook #'grfn/rust-setup) |