Skip to content

Commit ade453f

Browse files
authored
Merge pull request #515 from rust-lang/treesit-mode
Fix rust-mode and tree sitter integration
2 parents 25c2535 + a73d826 commit ade453f

File tree

3 files changed

+1460
-1450
lines changed

3 files changed

+1460
-1450
lines changed

rust-common.el

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
:type 'function
15+
:group 'rust-mode)
16+
17+
(provide 'rust-common)
18+
;;; rust-common.el ends here

0 commit comments

Comments
 (0)