Do not use tabs in inferior python mode

This commit is contained in:
torstein 2019-09-21 13:48:24 +02:00 committed by smile13241324
parent 1f0e41d7c2
commit 909d755667
3 changed files with 10 additions and 6 deletions

View File

@ -2363,6 +2363,7 @@ Other:
- Make pylookup makefile use correct shell (thanks to Koray Al)
- Fix lazy loading of =lsp-python-ms= (thanks to lsp-ableton)
- Fix =Ipython= path on windows (thanks to Daniel K)
- Make =inferior-python-mode= do not use tabs (thanks to tsoernes)
**** Racket
- Restore smart closing paren behavior in racket-mode (thanks to Don March)
- Updated racket logo (thanks to Vityou)

View File

@ -370,10 +370,6 @@ Bind formatter to '==' for LSP and '='for all other backends."
;; REPL
(defun spacemacs//inferior-python-setup-hook ()
"Setup REPL for python inferior process buffer."
(setq indent-tabs-mode t))
(defun spacemacs/python-shell-send-buffer-switch ()
"Send buffer content to shell and switch to it in insert mode."
(interactive)
@ -464,3 +460,11 @@ Bind formatter to '==' for LSP and '='for all other backends."
(when (version< emacs-version "25")
(advice-add 'wisent-python-default-setup :after
#'spacemacs//python-imenu-create-index-use-semantic-maybe))
(defun spacemacs//bind-python-repl-keys ()
"Bind the keys for testing in Python."
(spacemacs/declare-prefix-for-mode 'inferior-python-mode "mv" "virtualenv")
(spacemacs/set-leader-keys-for-major-mode 'inferior-python-mode
"c" 'comint-clear-buffer
"r" 'pyvenv-restart-python
"vw" 'pyvenv-workon))

View File

@ -309,8 +309,7 @@
(progn
(spacemacs/register-repl 'python
'spacemacs/python-start-or-switch-repl "python")
(add-hook 'inferior-python-mode-hook
'spacemacs//inferior-python-setup-hook)
(spacemacs//bind-python-repl-keys)
(spacemacs/add-to-hook 'python-mode-hook
'(spacemacs//python-setup-backend
spacemacs//python-default))