Added pyimport support
This commit is contained in:
parent
5cd1fb2a52
commit
5e66914fa2
2 changed files with 18 additions and 0 deletions
|
@ -206,3 +206,18 @@ called.")
|
||||||
(add-to-list 'global-mode-string
|
(add-to-list 'global-mode-string
|
||||||
'(conda-env-current-name (" conda:" conda-env-current-name " "))
|
'(conda-env-current-name (" conda:" conda-env-current-name " "))
|
||||||
'append))
|
'append))
|
||||||
|
|
||||||
|
|
||||||
|
;; Import managements
|
||||||
|
(def-package! pyimport
|
||||||
|
:after python
|
||||||
|
:init
|
||||||
|
(map! :after python
|
||||||
|
:map 'python-mode-map
|
||||||
|
:localleader
|
||||||
|
(:prefix ("i" . "insert")
|
||||||
|
:desc "Missing imports" "m" #'pyimport-insert-missing)
|
||||||
|
(:prefix ("r" . "remove")
|
||||||
|
:desc "Unused imports" "r" #'pyimport-remove-unused)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
|
@ -20,3 +20,6 @@
|
||||||
;; Testing frameworks
|
;; Testing frameworks
|
||||||
(package! nose)
|
(package! nose)
|
||||||
(package! python-pytest)
|
(package! python-pytest)
|
||||||
|
|
||||||
|
;; Import managements
|
||||||
|
(package! pyimport)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue