From 1eedb7e6665f84ef461d227cd875d60f23c5e499 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Wed, 14 Sep 2022 19:05:04 -0700 Subject: 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. --- CHANGELOG.md | 2 ++ apheleia.el | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.0