Emacs: how to disable 'file changed on disk' checking?

前端 未结 4 1310
一生所求
一生所求 2020-12-08 10:38

How to disable Emacs from checking the buffer file was changed outside the editor?

4条回答
  •  轮回少年
    2020-12-08 11:29

    In my case I wanted:

    (setq revert-without-query '(".*"))
    

    Documentation for revert-without-query:

    Specify which files should be reverted without query.
    The value is a list of regular expressions.
    If the file name matches one of these regular expressions,
    then ‘revert-buffer’ reverts the file without querying
    if the file has changed on disk and you have not edited the buffer.
    

提交回复
热议问题