最近我不得不多次运行命令 revert-buffer
并且非常沮丧地说 yes 每当 emacs 提示此消息 Revert buffer from file abc.txt? (yes or no)
。
在这种情况下,有没有自动说 是 ?
最佳答案
如果只是为了交互使用,我会定义一个替代函数:
(defun my-revert-buffer-noconfirm ()
"Call `revert-buffer' with the NOCONFIRM argument set."
(interactive)
(revert-buffer nil t))
或者,正如
revert-buffer
文档字符串告诉您的那样,查看 revert-without-query
变量,以防这对您来说是一个更好的解决方案。
关于emacs - 在 Emacs 中运行命令时如何自动说是?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19194619/