paetzke / py-autopep8.el

py-autopep8.el integrates autopep8 into Emacs.
GNU General Public License v3.0
79 stars 21 forks source link

Allow py-autopep8 to be disabled #23

Open jerryasher opened 7 years ago

jerryasher commented 7 years ago

This patch allows a user to disable py-autopep8.

This is important when working in repositories that are not formatted according to pep8, as py-autopep8, enabled as part of a python mode hook will reformat the files in these repos.

The change adds c-u behavior to py-autopep8-enable-on-save to remove py-autopep8-buffer from before-save-hook.