python: sort key bindings in doc and package config
This commit is contained in:
parent
b63039a6a4
commit
302d272ae3
|
@ -258,9 +258,9 @@ function with a prefix argument, for example ~SPC u SPC m t a~.
|
|||
|
||||
| Key Binding | Description |
|
||||
|-------------+-------------------------------------------------|
|
||||
| ~SPC m r f~ | fix a missing import statement with [[https://pypi.python.org/pypi/importmagic][importmagic]] |
|
||||
| ~SPC m r i~ | remove unused imports with [[https://github.com/myint/autoflake][autoflake]] |
|
||||
| ~SPC m r I~ | sort imports with [[https://pypi.python.org/pypi/isort][isort]] |
|
||||
| ~SPC m r f~ | fix a missing import statement with [[https://pypi.python.org/pypi/importmagic][importmagic]] |
|
||||
|
||||
** Live coding
|
||||
Live coding is provided by the [[https://github.com/donkirkby/live-py-plugin][live-py-plugin.]]
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
helm-gtags
|
||||
(helm-pydoc :requires helm)
|
||||
hy-mode
|
||||
importmagic
|
||||
live-py-mode
|
||||
(nose :location local)
|
||||
org
|
||||
|
@ -39,7 +40,6 @@
|
|||
stickyfunc-enhance
|
||||
xcscope
|
||||
yapfify
|
||||
importmagic
|
||||
))
|
||||
|
||||
(defun python/init-anaconda-mode ()
|
||||
|
@ -147,6 +147,14 @@
|
|||
;; call `spacemacs//python-setup-hy' once, don't put it in a hook (see issue #5988)
|
||||
(spacemacs//python-setup-hy))))
|
||||
|
||||
(defun python/init-importmagic ()
|
||||
(use-package importmagic
|
||||
:init
|
||||
(progn
|
||||
(add-hook 'python-mode-hook 'importmagic-mode)
|
||||
(spacemacs/set-leader-keys-for-major-mode 'python-mode
|
||||
"rf" 'importmagic-fix-symbol-at-point))))
|
||||
|
||||
(defun python/init-live-py-mode ()
|
||||
(use-package live-py-mode
|
||||
:defer t
|
||||
|
@ -369,11 +377,3 @@ fix this issue."
|
|||
(when python-enable-yapf-format-on-save
|
||||
(add-hook 'python-mode-hook 'yapf-mode)))
|
||||
:config (spacemacs|hide-lighter yapf-mode)))
|
||||
|
||||
(defun python/init-importmagic ()
|
||||
(use-package importmagic
|
||||
:init
|
||||
(progn
|
||||
(add-hook 'python-mode-hook 'importmagic-mode)
|
||||
(spacemacs/set-leader-keys-for-major-mode 'python-mode
|
||||
"rf" 'importmagic-fix-symbol-at-point))))
|
||||
|
|
Loading…
Reference in New Issue