lassik / emacs-format-all-the-code

Auto-format source code in many languages with one command
https://melpa.org/#/format-all
MIT License
604 stars 105 forks source link

Add format-all-region-or-buffer command #228

Closed tsilvap closed 1 year ago

tsilvap commented 1 year ago

Added a format-all-region-or-buffer command. I don't know any reason to not have it, and the benefit is that you can bind it to a single key and it'll do the right thing.

I used the suffix -region-or-bufferrather than -buffer-or-region for consistency with the elisp-eval-region-or-buffer function introduced in Emacs 29.1

lassik commented 1 year ago

Thanks! Probably a good idea.