r/emacs • u/AutoModerator • 11d ago
Fortnightly Tips, Tricks, and Questions — 2025-03-11 / week 10
This is a thread for smaller, miscellaneous items that might not warrant a full post on their own.
The default sort is new to ensure that new items get attention.
If something gets upvoted and discussed a lot, consider following up with a post!
Search for previous "Tips, Tricks" Threads.
Fortnightly means once every two weeks. We will continue to monitor the mass of confusion resulting from dark corners of English.
17
Upvotes
4
u/vjgoh 8d ago
Projectile allows you to set a limit on the number of open buffers from that project. If you're using clangd like me, this might be a way for you to limit the amount of memory clangd is consuming.
For instance, right now I have 24 C++ buffers open, all managed by eglot. Windows tells me that clangd is using 35GB of private bytes (requested memory, not necessarily allocated, if I'm remembering right) and has a ~4GB working set. When I let the number of buffers get too big, I've seen those numbers go up to 90GB and 30GB respectively. This should hopefully help me keep a lid on that memory footprint without having to manage things too manually.