Hi,
Thanks for this setup. I've really enjoyed starting to use it. After setting it up, I noticed my emacs was fairly laggy. I think it got worse depending on the number of buffers I had open. I used the profiler and found that it was due to auto-revert. I found that adding the line:
(setq auto-revert-avoid-polling t)
along with the other auto-revert related lines in init.el fixed my issue and there's no noticeable lag relative to my prior configuration. This line tells auto-revert to avoid checking for changes (avoid polling) and instead to wait for the OS to tell it about any changes. It's possible that changing the polling frequency would also help. The main caveat, from the documentation (https://www.gnu.org/software/emacs/manual/html_node/emacs/Auto-Revert.html), is
However, notification is ineffective on certain file systems; mainly network file system on Unix-like machines, where files can be altered from other machines. For such file systems, polling may be necessary. To force polling when auto-revert-avoid-polling is non-nil, set auto-revert-notify-exclude-dir-regexp to match files that should be excluded from using notification.
I assume this isn't an issue for everyone and I'm not sure why it was for me, but it could be worth including a note about (eg, uncomment this line if slow) in the init.el file to save the labor that I did. Some potential culprits in my case include: client-server setup for emacs (and lots of open buffers over time, but only like ~20) or using emacs in files that are in a dropbox folder.
Let me know if there's any more information that would be helpful and thank you again for the great setup.
I'm using emacs 29.1 with macos 12.6.8.
Sorry for the slow response! I’ve been a little overwhelmed.
Thank you so much for the bug report. I will look into that as soon as I can. This isn’t an issue that I have run into, even though I am running on macOS as well. Thanks again! :-)
Closed by 96a69db
Thank you so much for suggesting this! I've added this customization to my personal config and I love it!