3 ms·
Just so it's in the thread: I believe the emacs option for "hey, that file changed on disk; I'll reload" is (global-auto-revert-mode 1)
by ubermonkey 6y ago
Just so it's in the thread: I believe the emacs option for "hey, that file changed on disk; I'll reload" is
(global-auto-revert-mode 1)
- ledauphin 6y agoI've been using emacs for about 15 years and didn't realize this was an option. I've added it to my config - thank you! (and thanks to the GP as well, of course!)
- ubermonkey 6y agoI am a total emacs noob given my relatively shallow exploitation of it, and my absolute ignorance of lisp. This is absolutely the first time I've provided an emacs answer someone found useful in a technical forum. I'm gonna need a minute. (heh)
- zmaqsood 6y agoTo build on this tip, the following will shorten file revert time but a couple seconds (default is 5 secs) (setq auto-revert-interval 1) Found in https://www.gnu.org/software/emacs/manual/html_node/emacs/Reverting.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Re...