Archived
1
0
Fork 0
This repository has been archived on 2024-10-19. You can view files and clone it, but cannot push or open issues or pull requests.
emacs/code/elpa/rust-mode-20240313.157/rust-common.el

21 lines
534 B
EmacsLisp
Raw Permalink Normal View History

2024-03-20 13:57:39 +00:00
;;; 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