Add live-python mode to python layer as extension
This commit is contained in:
parent
bdc719876a
commit
0cd242315b
|
@ -22,6 +22,7 @@
|
|||
- [[Running Python Script in shell][Running Python Script in shell]]
|
||||
- [[Testing][Testing]]
|
||||
- [[Refactoring][Refactoring]]
|
||||
- [[Live coding][Live coding]]
|
||||
- [[Other Python commands][Other Python commands]]
|
||||
- [[Configuration][Configuration]]
|
||||
- [[Fill column][Fill column]]
|
||||
|
@ -204,6 +205,13 @@ Test commands start with ~m t~:
|
|||
|-------------+--------------------------------------|
|
||||
| ~SPC m r i~ | remove unused imports with [[https://github.com/myint/autoflake][autoflake]] |
|
||||
|
||||
** Live coding
|
||||
Live coding is provided by the [[https://github.com/donkirkby/live-py-plugin][live-py-plugin.]]
|
||||
|
||||
| Key Binding | Description |
|
||||
|-------------+---------------------|
|
||||
| ~SPC m l~ | Toggle live-py-mode |
|
||||
|
||||
** Other Python commands
|
||||
|
||||
| Key Binding | Description |
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
helm-pydoc
|
||||
hy-mode
|
||||
(nose :location local)
|
||||
live-py-mode
|
||||
pip-requirements
|
||||
pyenv-mode
|
||||
(pylookup :location local)
|
||||
|
@ -112,6 +113,15 @@
|
|||
(use-package hy-mode
|
||||
:defer t))
|
||||
|
||||
(defun python/init-live-py-mode ()
|
||||
(use-package live-py-mode
|
||||
:defer t
|
||||
:commands live-py-mode
|
||||
:init
|
||||
(spacemacs/set-leader-keys-for-major-mode 'python-mode
|
||||
"l" 'live-py-mode))
|
||||
)
|
||||
|
||||
(defun python/init-nose ()
|
||||
(use-package nose
|
||||
:if (eq 'nose python-test-runner)
|
||||
|
|
Loading…
Reference in New Issue