aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md3
-rw-r--r--apheleia-formatters.el4
2 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5409a58..b48b92c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -36,11 +36,14 @@ The format is based on [Keep a Changelog].
### Bugs fixed
* `shfmt` did not work with `apheleia-formatters-respect-indent-level`
* `apheleia-npx` did return an error when formatter was missing
+* `lisp-indent` formatter did not respect `lisp-indent-offset` and
+ `lisp-body-offset` ([#393])
[#378]: https://github.com/radian-software/apheleia/pull/378
[#380]: https://github.com/radian-software/apheleia/pull/380
[#382]: https://github.com/radian-software/apheleia/pull/382
[#386]: https://github.com/radian-software/apheleia/pull/386
+[#393]: https://github.com/radian-software/apheleia/pull/393
## 4.4.2 (released 2025-11-21)
### Bugs fixed
diff --git a/apheleia-formatters.el b/apheleia-formatters.el
index bbbbe8e..8c04769 100644
--- a/apheleia-formatters.el
+++ b/apheleia-formatters.el
@@ -1249,6 +1249,10 @@ For more implementation detail, see
(buffer-local-value 'lisp-indent-function buffer))
(setq-local indent-tabs-mode
(buffer-local-value 'indent-tabs-mode buffer))
+ (setq-local lisp-indent-offset
+ (buffer-local-value 'lisp-indent-offset buffer))
+ (setq-local lisp-body-indent
+ (buffer-local-value 'lisp-body-indent buffer))
(goto-char (point-min))
(let ((inhibit-message t)
(message-log-max nil))