From d0f2c0665904763a294d4d7d4727fda74dc42cd9 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Wed, 16 Nov 2022 21:54:13 +0000 Subject: [PATCH] feat: format Rust buffers on save --- lisp/languages.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/languages.el b/lisp/languages.el index f8e1472..cb98737 100644 --- a/lisp/languages.el +++ b/lisp/languages.el @@ -38,8 +38,10 @@ (use-package rustic :custom + (rustic-format-trigger 'on-save) ; Format buffer on save (rustic-lsp-client 'eglot)) ; Make eglot the default LSP client + ;; Disable flymake for eglot - in favour of flycheck (add-hook 'eglot--managed-mode-hook (lambda () (flymake-mode -1)))