aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadon Rosborough <radon.neon@gmail.com>2019-08-15 08:23:47 -0700
committerGitHub <noreply@github.com>2019-08-15 08:23:47 -0700
commitd44128023594b2765f2e6b58dce2d291709f2ac5 (patch)
tree65609478d81edb22b0dbf0f9198615e0e889ecce
parent4e9f797210bd0e3777bf4f973ce137c43b1506fb (diff)
parent1d76c121bace7f6255d001ef1ac687f6919e1e07 (diff)
Merge pull request #5 from akirak/coding-system
Set the process coding system based on buffer-file-coding-system
-rw-r--r--apheleia.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/apheleia.el b/apheleia.el
index 8b189c8..2a6eed2 100644
--- a/apheleia.el
+++ b/apheleia.el
@@ -289,6 +289,9 @@ provided that its exit status is 0."
(process-exit-status proc)
stderr))))))
(set-process-sentinel (get-buffer-process stderr) #'ignore)
+ (set-process-coding-system apheleia--current-process
+ nil
+ (buffer-local-value 'buffer-file-coding-system stdin))
(when stdin
(process-send-string
apheleia--current-process