如何(自动)删除或防止在 emacs 中弹出 *Async Shell Command*?
正如此处中所要求的那样。我可以在 emacs 中运行 vi 或 mate。
问题是,运行 (async-shell-command "vi") 后,我总是弹出“*Async Shell Command”窗口。
我可以阻止弹出此窗口吗?或者,可以我修改emacs代码,让窗口一弹出就去掉?
(defun runvi () (interactive) (let (filename (file-truename buffer-file-name)) (setq cmd (format "/Users/smcho/bin/mvim %s" (file-truename buffer-file-name))) (async-shell-command cmd)))
As is asked in here. I could run vi or mate within emacs.
The problem is that after running (async-shell-command "vi"), I always have the *Async Shell Command" popped up as a window.
Can I prevent popping up this windows? Or, can I modify the emacs code to remove the window as soon as it pops up?
(defun runvi () (interactive) (let (filename (file-truename buffer-file-name)) (setq cmd (format "/Users/smcho/bin/mvim %s" (file-truename buffer-file-name))) (async-shell-command cmd)))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这将起作用(假设
cmd
绑定到您想要的命令,就像上面一样):This will work (assuming
cmd
is bound to the command you want, like you have above):