Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Emacs 中有一个 shell,但major-mode只给了我comint-mode. 有没有办法确定哪种类型的外壳?
major-mode
comint-mode
也许调用了什么 Emacs 函数来启动它? 或者至少解释器的可执行文件是什么?
M-:(process-command (get-buffer-process (current-buffer)))
(process-command (get-buffer-process (current-buffer)))
在某些情况下,当使用标准外壳时
echo $0
可能就足够了。