summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorccQpein <ccqpein@protonmail.com>2024-02-26 20:42:36 -0500
committerccQpein <ccqpein@protonmail.com>2024-02-26 20:42:36 -0500
commitbeb8525ea427e47a2eb2f035418c06a95071f7eb (patch)
tree494541d63085cccb7bd6ddba65790bad5dc49c9f
parentade453f95e95a3fb6ae90204e51571008fd25d48 (diff)
downloadrust-mode-beb8525ea427e47a2eb2f035418c06a95071f7eb.tar.gz
require rust-rustfmt for importing rust-after-save-method defination
-rw-r--r--rust-common.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust-common.el b/rust-common.el
index c216264..b7dd695 100644
--- a/rust-common.el
+++ b/rust-common.el
@@ -4,6 +4,8 @@
;; rust-common code for both prog-mode and tree-sitter one
;;; Code:
+(require 'rust-rustfmt)
+
(defcustom rust-before-save-hook 'rust-before-save-method
"Function for formatting before save."
:type 'function