Skip to content
forked from Wilfred/pyimport

Manage Python imports from Emacs!

Notifications You must be signed in to change notification settings

corrafig/pyimport

 
 

Repository files navigation

pyimport

Manage Python imports from Emacs!

Build Status Coverage Status MELPA

Installation: install from MELPA, or add pyimport.el to your load-path.

Unused Imports

Requires pyflakes to be installed.

screenshot

Run M-x pyimport-remove-unused.

This requires pyflakes to be on PATH. Alternatively, set pyimport-pyflakes-path.

Insert Missing Imports

screenshot

Place point on the missing variable, then run M-x pyimport-insert-missing.

This assumes that you have another Python buffer that contains an example of importing the variable.

I like to bind this to a key:

(define-key python-mode-map (kbd "C-c C-i") #'pyimport-insert-missing)

About

Manage Python imports from Emacs!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%