diff options
| author | Radon Rosborough <radon@intuitiveexplanations.com> | 2022-09-14 19:05:04 -0700 |
|---|---|---|
| committer | Radon Rosborough <radon@intuitiveexplanations.com> | 2022-09-14 19:05:04 -0700 |
| commit | 1eedb7e6665f84ef461d227cd875d60f23c5e499 (patch) | |
| tree | 183b15d6c36270ca0d54e9158c285387863ae3b6 | |
| parent | 4c66f76b222b8e261e9c22d722e7c8d114b1fcf2 (diff) | |
Do not format Elisp by default
There are just too many Elisp files that are indented in nonstandard
ways for this to be an okay default, I think. And to make matters
worse, Elisp indentation varies depending on what is loaded into the
current environment (due to macros, etc), meaning that your
indentation may become broken if you happen to edit a file with the
wrong libraries loaded.
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | apheleia.el | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e3addcf..fca7720 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,8 @@ The format is based on [Keep a Changelog]. ([#101]). * [stylua](https://github.com/JohnnyMorganz/StyLua) for Lua ([#105]). * Native Emacs indentation of Emacs Lisp code as a formatter ([#102]). + This is not enabled by default but you can enable it by adding + `(emacs-lisp-mode . lisp-indent)` to `apheleia-mode-alist` ### Bugfixes * Prettier supports SCSS instead of SASS. The original support for diff --git a/apheleia.el b/apheleia.el index 09cafa9..43b97c6 100644 --- a/apheleia.el +++ b/apheleia.el @@ -1111,7 +1111,6 @@ function: %s" command))) (common-lisp-mode . lisp-indent) (css-mode . prettier-css) (dart-mode . dart-format) - (emacs-lisp-mode . lisp-indent) (elixir-mode . mix-format) (elm-mode . elm-format) (fish-mode . fish-indent) |
