[spacemacs-defaults] Tweak savehist configuration #16762
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use an idle timer instead of a strict periodic autosave interval. Saving large histories can cause noticable delays, and the default
history-length
set by Spacemacs is relatively large (1000).Save
kill-ring
without text properties, as they are known to cause significant performance problems and huge history files in some cases, and persisting them in the kill-ring usually brings little benefit. This should fix Spacemacs freezes from time to time. When this happens it eats up almost all memory and CPU. #1300, fix Spacemacs gets stuck for a few seconds and hogs CPU(100% usage) from time to time #1369 and fix emacs eats cpu 100% frequently #9409 again.Add
kmacro-ring
andlog-edit-comment-ring
as additional variables. They are useful and usually not very large. BTW,search-ring
,regexp-search-ring
andextended-command-history
are redundant here as long as long assavehist-save-minibuffer-history
is non-nil (the default). I decided to leave them there for now to avoid any breaking changes for users that customized that option, though I guess it could be okay to change this.