activate inferior-python-mode in comint buffer

this enables autocompletion
This code still has the bug that point stays in the comint buffer
This commit is contained in:
Christoph Paulik 2015-03-14 12:14:11 +01:00 committed by syl20bnr
parent 06a2d9ba47
commit 7cc096e213

View file

@ -214,9 +214,12 @@ which require an initialization must be listed explicitly in the list.")
(setq universal-argument t)
(if arg
(call-interactively 'compile)
(setq compile-command (format "python %s" (file-name-nondirectory
buffer-file-name)))
(compile compile-command t)))
(compile compile-command t)
(with-current-buffer (get-buffer "*compilation*")
(inferior-python-mode))))
(defun spacemacs/python-execute-file-focus (arg)
"Execute a python script in a shell and switch to the shell buffer in