Skip to content

Commit

Permalink
[#220] Disable in jinja2-mode by default
Browse files Browse the repository at this point in the history
  • Loading branch information
raxod502 committed Nov 4, 2023
1 parent 4178439 commit 236593b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apheleia-formatters.el
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ rather than using this system."
(html-ts-mode . prettier-html)
(java-mode . google-java-format)
(java-ts-mode . google-java-format)
(jinja2-mode . nil)
(js3-mode . prettier-javascript)
(js-json-mode . prettier-json)
(js-mode . prettier-javascript)
Expand Down Expand Up @@ -298,7 +299,13 @@ If a given mode derives from another mode (e.g. `php-mode' and
`cc-mode'), then whichever entry in the alist is more specific
will apply. In the case that multiple modes match
`derived-mode-p' for the current buffer but neither derives from
the other, whichever entry comes first will be used."
the other, whichever entry comes first will be used.
The value for a major mode can be nil (equivalently, an empty
list). This means to use no formatter. This can be helpful in
case your major mode derives from a more general one, but you
don't want the more general formatter to apply to the derived
mode."
:type '(alist
:key-type
(choice (symbol :tag "Major mode")
Expand Down

0 comments on commit 236593b

Please sign in to comment.