在emacs中打开第二个python解释器

如何在emacs中打开第二个python解释器?我正在使用emacs 24.3和Ubuntu 12.04 LTS.我通过2的前缀参数打开了SQL解释器/程序.我用python尝试了一下,但没有用.

欢迎任何建议和想法.我当前的python解释器缓冲区中的模式说:下等Python:运行Shell-Compile我已经从emacs软件包管理器ELPA下载了python-mode 6.10.

感谢您的所有帮助!

解决方法:

M-x描述功能(RET)运行python:

run-python is an interactive compiled Lisp function in `python.el’.

(run-python &optional CMD NOSHOW NEW)

Run an inferior Python process, input and output via buffer Python.
CMD is the Python command to run. NOSHOW non-nil means don’t show the
buffer automatically.

Interactively, a prefix arg means to prompt for the initial Python
command line (default is `python-command’).

A new process is started if one isn’t running attached to
python-buffer', or if called from Lisp with non-nil arg NEW.
Otherwise, if a process is already running in
python-buffer’, switch
to that buffer.

在* scratch *缓冲区中:

(run-python nil nil 't)

这将为您提供一个新的劣等Python流程.

您可以在.emacs文件中编写一个新的交互式emacs命令,如下所示:

(defun my-run-python ()
  (interactive)
  (run-python nil nil 't))
上一篇:如何更改“ run-python”的默认命令?


下一篇:Agile.Net 组件式开发平台 - 数据访问组件