Open
Description
Unfortunately I cannot reproduce, but I lost the content of my ~/.emacs.keyfreq
. It may not even be a keyfreq bug, but I think it's useful to have an issue to discuss this. Keyfreq could be more resilient in this case, or at least warn when it happens, like what I now put in my init files:
(use-package keyfreq
:config
(if (and (file-exists-p keyfreq-file)
(= 0 (doom-file-size) keyfreq-file))
(warn "File mysteriously blanked: keyfreq-file!")
(keyfreq-mode)
(keyfreq-autosave-mode)))
It's fortunate that the package spits out errors and warnings (though nondescriptive) when the file is empty, so I could track down the problem. I recommend keeping it that way, perhaps just making the warnings more descriptive.
If you have an idea how to track down the cause of this, I'm all ears.
Metadata
Metadata
Assignees
Labels
No labels