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

查看:17
本文介绍了当磁盘上的文件发生更改时,如何让 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?

谢谢!

推荐答案

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

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

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