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.
正如问题所说,我希望我在 R 中的默认编辑器(例如,当我执行 fix(fn_name) 时)成为 emacs 的非窗口模式,而不是窗口模式。有没有办法做到这一点?
在某处创建一个文件(我使用bin我家下的目录),emacsnw如下所示:
bin
emacsnw
#!/bin/sh emacs -nw "$@"
并使其可执行:chmod 755 emacsnw
chmod 755 emacsnw
然后你可以做options(editor="/home/me/bin/emacsnw"),然后调用它。
options(editor="/home/me/bin/emacsnw")
注意我永远不记得是否"$@"或者"$*"是通过脚本传递 args 的正确方法,但这似乎适用于fix().
"$@"
"$*"
fix()