Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 728 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 728 Bytes

MELPA

zimports

Use the python zimports package to sort your python imports.

Installation

zimports is available via melpa. Make sure the python zimports executable is on PATH.

Usage

Call zimports-buffer to sort imports in the current python buffer. Enable zimports-mode to sort imports every time you save the buffer.

Turn on zimports with dir-locals

You can turn on zimports-mode by creating a .dir-locals.el file with the following contents:

((python-mode . ((mode . zimports))))