about summary refs log tree commit diff
path: root/users/glittershark/emacs.d/rust.el
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-12-01T17·01-0500
committerglittershark <grfn@gws.fyi>2020-12-14T18·18+0000
commit3f9bd60d854535ce77aa0b1f6e5aba5a7d06cc93 (patch)
tree589c2974a620beea043f9a4e0aa447a8107c78cd /users/glittershark/emacs.d/rust.el
parent23f1bac044a974ab9ce01abec1fae39112af7805 (diff)
feat(gs/emacs): Setup rust r/1999
Change-Id: I98e2badbaec523e509a2d311a13d8d2d81f4cda8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2222
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/glittershark/emacs.d/rust.el')
-rw-r--r--users/glittershark/emacs.d/rust.el8
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)