Skip to content

Commit

Permalink
Display which formater is used
Browse files Browse the repository at this point in the history
  • Loading branch information
galaunay committed Mar 21, 2020
1 parent 59735cd commit 782e93d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elpy.el
Original file line number Diff line number Diff line change
Expand Up @@ -2252,10 +2252,13 @@ prefix argument is given, prompt for a symbol from the user."
(interactive)
(cond
((elpy-config--package-available-p "yapf")
(message "Autoformatting code with yapf.")
(elpy-yapf-fix-code))
((elpy-config--package-available-p "autopep8")
(message "Autoformatting code with autopep8.")
(elpy-autopep8-fix-code))
((elpy-config--package-available-p "black")
(message "Autoformatting code with black.")
(elpy-black-fix-code))
(t
(message "Install yapf/autopep8 to format code."))))
Expand Down

0 comments on commit 782e93d

Please sign in to comment.