当文件在磁盘上更改时,如何让Emacs自动刷新所有缓冲区? [英] How to have Emacs auto-refresh all buffers when files have changed on disk?

查看:213
本文介绍了当文件在磁盘上更改时,如何让Emacs自动刷新所有缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非emacs全局搜索和替换功能,使我的磁盘文件比我的emacs缓冲区(大量)更新。有没有办法告诉emacs一次性刷新磁盘的所有缓冲区,而不是通过重新加载文件来单独执行每个缓冲区?

I have a non-emacs global search and replace function that causes my disk files to become more up-to-date than my emacs buffers (en masse). Is there any way to tell emacs to refresh all the buffers from disk in one fell swoop, instead of having to do each one individually by reloading the file?

谢谢!
D

Thanks! D

推荐答案

(global-auto-revert-mode t)在您的 .emacs

这篇关于当文件在磁盘上更改时,如何让Emacs自动刷新所有缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆