Add live-python mode to python layer as extension

This commit is contained in:
Christoph Paulik 2015-10-29 09:42:37 +01:00 committed by Fabien Dubosson
parent bdc719876a
commit 0cd242315b
2 changed files with 18 additions and 0 deletions

View File

@ -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 |

View File

@ -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)