aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadon Rosborough <radon.neon@gmail.com>2019-07-10 19:21:29 -0700
committerRadon Rosborough <radon.neon@gmail.com>2019-07-10 19:21:29 -0700
commit405f71143cf72c8d9488285a2452b6d6871c8eb2 (patch)
tree435b2155a26de5507a40703e9bc0c832b42e78a3
parent80bf0874bc6590427b7f479d4a1146b5f895927e (diff)
Prevent infinite recurrence
-rw-r--r--apheleia.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/apheleia.el b/apheleia.el
index 39a7905..3e821c3 100644
--- a/apheleia.el
+++ b/apheleia.el
@@ -552,7 +552,9 @@ changes), CALLBACK, if provided, is invoked with no arguments."
command
(lambda ()
(ignore-errors
- (apheleia--write-file-silently buffer-file-name))))))
+ (let ((after-save-hook
+ (remq #'apheleia--format-after-save after-save-hook)))
+ (apheleia--write-file-silently buffer-file-name)))))))
;; Use `progn' to force the entire minor mode definition to be copied
;; into the autoloads file, so that the minor mode can be enabled