about summary refs log tree commit diff stats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/+apheleia.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/lisp/+apheleia.el b/lisp/+apheleia.el new file mode 100644 index 0000000..f3b16e4 --- /dev/null +++ b/lisp/+apheleia.el
@@ -0,0 +1,16 @@
1;;; +apheleia.el -*- lexical-binding: t; -*-
2
3;;; Code:
4
5;; https://github.com/raxod502/apheleia/pull/63#issue-1077529623
6(defun +apheleia-indent-region (orig scratch callback _error)
7 (with-current-buffer scratch
8 (setq-local indent-line-function
9 (buffer-local-value 'indent-line-function orig))
10 (indent-region (point-min)
11(point-max))
12 (funcall callback)))
13
14(provide '+apheleia)
15;;; +apheleia.el ends here
16 \ No newline at end of file