emacs python 模式 : designate which python shell to send commands to

标签 emacs python-mode

对此进行跟进 question - 如果我有两个在 emacs 中运行的 python shell,我如何指定将每个 python 脚本缓冲区中的哪些 shell 命令发送到?我怀疑它与 python-bufferpython-set-proc 有关,但将这些变量设置为 shell 的名称显然不是解决方案。

编辑:实际上因为我使用的是 python-mode 而不是 loveshack python,它可能与 python-buffer 无关和 python-set-proc

最佳答案

您可以将新值设置为 python-buffer .

(defun my-python-set-proc (buffer-name)
  (interactive "B")
  (setf python-buffer (get-buffer buffer-name))
  (python-set-proc))

然后M-x my-python-set-proc RET *Python* 返回, 或 M-x my-python-set-proc RET *Python*<2> RET.

关于emacs python 模式 : designate which python shell to send commands to,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8282459/

相关文章:

Emacs 24 Ubuntu 菜单面板

emacs - 编译前是否可以不要求保存缓冲区?

Vim pymode : meaning of <C-c> key combination

emacs - 适用于 TypeScript 的功能性最新 Emacs 模式

emacs - 如何在 Emacs 24 中保存所有已安装软件包的列表?

emacs - 如何在 emacs 中用换行符(LF)替换空格字符?

python - 如何防止使用带有 python-mode/rope 和 SimpylFold 的 vim 重构后自动重新折叠 python 代码

Vim Python 模式折叠

python - 在 ]vim python-mode 中禁用 PEP-257 警告

Emacs 脚本字节编译(带加载库)