From e2c3a7a6d43139291ea9dfe99afc53803d000427 Mon Sep 17 00:00:00 2001 From: brotzeit Date: Fri, 26 Nov 2021 19:59:47 +0100 Subject: allow changing rustfmt hook funtctions --- rust-rustfmt.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust-rustfmt.el') diff --git a/rust-rustfmt.el b/rust-rustfmt.el index ddab81f..0690b84 100644 --- a/rust-rustfmt.el +++ b/rust-rustfmt.el @@ -347,7 +347,7 @@ Return the created process." ;;; Hooks -(defun rust-before-save-hook () +(defun rust-before-save-method () (when rust-format-on-save (condition-case e (rust-format-buffer) @@ -355,7 +355,7 @@ Return the created process." (car e) (cdr e)))))) -(defun rust-after-save-hook () +(defun rust-after-save-method () (when rust-format-on-save (if (not (executable-find rust-rustfmt-bin)) (error "Could not locate executable \"%s\"" rust-rustfmt-bin) -- cgit v1.2.3