Refactor pyimport def-package! block
This commit is contained in:
parent
5e66914fa2
commit
7a252b6a47
1 changed files with 11 additions and 15 deletions
|
@ -94,6 +94,17 @@ called.")
|
||||||
"u" #'anaconda-mode-find-references))
|
"u" #'anaconda-mode-find-references))
|
||||||
|
|
||||||
|
|
||||||
|
(def-package! pyimport
|
||||||
|
:after python
|
||||||
|
:config
|
||||||
|
(map! :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)))
|
||||||
|
|
||||||
|
|
||||||
(def-package! nose
|
(def-package! nose
|
||||||
:commands nose-mode
|
:commands nose-mode
|
||||||
:preface (defvar nose-mode-map (make-sparse-keymap))
|
:preface (defvar nose-mode-map (make-sparse-keymap))
|
||||||
|
@ -206,18 +217,3 @@ 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)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue