有没有 loveshack python-mode (python.el) 的等价物
- py-shell
- py-执行区域
- py-执行-类或定义
在 python-mode.el 中有哪些可用?
答案1
我对它们都不太熟悉,但也许它们是等价的:
python-send-region
Send the region to the inferior Python process.
May print a message, so only suitable for interactive use.
python-send-region-and-go
Send the region to the inferior Python process.
Then switch to the process buffer.
python-send-defun
Send the current defun (class or method) to the inferior Python process.
python-python 命令
Shell command to run Python interpreter.
Any arguments can't contain whitespace.
Note that IPython may not work properly;
it must at least be used with the `-cl' flag,
i.e. use `ipython -cl'.
Doesn't take full effect unless set through Custom.
另请查看提到的“gallina”python.el这里。
答案2
这里提到的所有命令都来自 python-mode.el。加载已加载的 python.el 不会卸载它们,python-mode.el 也不会卸载 python.el 命令。但有一个例外:对于 major-mode,最新加载的命令将占上风,并将其设置为较轻的命令。