File: rust-common.el

package info (click to toggle)
elpa-rust-mode 1.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 336 kB
  • sloc: lisp: 4,953; makefile: 38; sh: 8
file content (20 lines) | stat: -rw-r--r-- 534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;;; rust-common.el --- Common code for both modes -*-lexical-binding: t-*-
;;; Commentary:

;; 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
  :group 'rust-mode)

(defcustom rust-after-save-hook 'rust-after-save-method
  "Default method to handle rustfmt invocation after save."
  :type 'function
  :group 'rust-mode)

(provide 'rust-common)
;;; rust-common.el ends here