We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25c2535 + a73d826 commit ade453fCopy full SHA for ade453f
rust-common.el
@@ -0,0 +1,18 @@
1
+;;; rust-common.el --- Common code for both modes -*-lexical-binding: t-*-
2
+;;; Commentary:
3
+
4
+;; rust-common code for both prog-mode and tree-sitter one
5
6
+;;; Code:
7
+(defcustom rust-before-save-hook 'rust-before-save-method
8
+ "Function for formatting before save."
9
+ :type 'function
10
+ :group 'rust-mode)
11
12
+(defcustom rust-after-save-hook 'rust-after-save-method
13
+ "Default method to handle rustfmt invocation after save."
14
15
16
17
+(provide 'rust-common)
18
+;;; rust-common.el ends here
0 commit comments