Add notes on .dir-locals.el to README

Closes #190
This commit is contained in:
Radon Rosborough 2023-07-19 17:21:07 -07:00
parent f85b48e2ee
commit c222927f70

View file

@ -157,6 +157,10 @@ variables:
of `file` in general.
* `apheleia-formatter`: Optional buffer-local variable specifying the
formatter to use in this buffer. Overrides `apheleia-mode-alist`.
You can set this in a local variables list, or in `.dir-locals.el`
(e.g. `((python-mode . ((apheleia-formatter . (isort black)))))`),
or in a custom hook of your own that sets the local variable
conditionally.
* `apheleia-inhibit`: Optional buffer-local variable, if set to
non-nil then Apheleia does not turn on automatically even if
`apheleia-global-mode` is on.