about summary refs log blame commit diff
path: root/users/glittershark/emacs.d/rust.el
blob: 540ffcd82e983d2dc178f992a2f218abaac69f0d (plain) (tree)
1
2
3
4
5
6
7
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)