summary refs log tree commit diff stats
path: root/lisp/+apheleia.el
diff options
context:
space:
mode:
authorCase Duckworth2022-01-07 17:30:27 -0600
committerCase Duckworth2022-01-07 17:30:27 -0600
commit04a90b906c5e5a04cb60647e9263db675ec1d44e (patch)
treeb6bbf533f7697215ad24f534988e422b8d259881 /lisp/+apheleia.el
parentMake elfeed load the database before opening (diff)
downloademacs-04a90b906c5e5a04cb60647e9263db675ec1d44e.tar.gz
emacs-04a90b906c5e5a04cb60647e9263db675ec1d44e.zip
Add apheleia
Diffstat (limited to 'lisp/+apheleia.el')
-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