[英]Open second python interpreter in emacs
我如何在emacs中打開第二個python解釋器? 我正在使用emacs 24.3和Ubuntu 12.04 LTS。 我通過2的前綴參數打開了SQL解釋器/程序。我用python嘗試了這個並且它不起作用。
歡迎任何建議和想法。 我當前的python解釋器緩沖區中的模式說: Inferior Python: run Shell-Compile
我從ELPA emacs包管理器下載了python-mode 6.10。
感謝您的幫助!
Mx describe-function
(RET) run-python
:
run-python是`python.el'中的交互式編譯Lisp函數。
(run-python&optional CMD NOSHOW NEW)
運行一個較差的Python進程,通過緩沖區Python輸入和輸出。 CMD是要運行的Python命令。 NOSHOW非零意味着不自動顯示緩沖區。
交互式地,前綴arg意味着提示初始Python命令行(默認為`python-command')。
如果一個沒有運行附加到
python-buffer', or if called from Lisp with non-nil arg NEW. Otherwise, if a process is already running in
則啟動一個新進程python-buffer', or if called from Lisp with non-nil arg NEW. Otherwise, if a process is already running in
python-buffer', or if called from Lisp with non-nil arg NEW. Otherwise, if a process is already running in
python-buffer'中python-buffer', or if called from Lisp with non-nil arg NEW. Otherwise, if a process is already running in
,請切換到該緩沖區。...
在*scratch*
緩沖區中:
(run-python nil nil 't)
這將為您提供一個新的Inferior Python進程。
您可以在.emacs
文件中編寫新的交互式emacs命令,例如:
(defun my-run-python ()
(interactive)
(run-python nil nil 't))
Cu Mx python
BTW你的python模式版本已經過時了。 建議去取一個新的
bzr branch lp:python-mode
或訪問
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.