
5초마다 파일 버퍼를 자동으로 되돌리는 "auto-revert-mode"라는 emacs 마이너 모드가 있습니다.
내 .emacs 파일에는 라인만 있고 (auto-revert-mode 1)
다른 것은 없지만 emacs 세션을 시작할 때마다 수동으로 켜야 합니다.
여기서 무슨 일이 일어나고 있는 걸까요? 시작 시 자동 복귀 모드를 설정할 수 없는 이유는 무엇입니까?
답변1
함수 문서에서:
This is a minor mode that affects only the current buffer.
Use `global-auto-revert-mode' to automatically revert all buffers.
Use `auto-revert-tail-mode' if you know that the file will only grow
without being changed in the part that is already in the buffer.
global-auto-revert-mode
그러므로 용도에 맞게 사용해야 합니다 .