I don't believe so. I've looked at a number of approaches.
1. `desktop-minor-mode-handlers` on desktop-read
Not going to be consulted unless `dired-hide-details-mode` is saved as a buffer minor mode.
2. `desktop-minor-mode-table` on desktop-save
If `dired-hide-details-mode` is not in `minor-mode-alist`, `desktop-minor-mode-table` will not even be consulted.
3. `desktop-locals-to-save`
This does save the minor mode local variable to the desktop file, but desktop won't be able to restore the minor mode because minor modes are activated before buffer local variables are restored, not after.
So the only choices left to me are:
- :lighter ""
- (add-minor-mode 'dired-hide-details-mode "")
Either way adds an empty string as a lighter, and the second option makes you ask why you are declaring *and* adding a minor mode, so I picked the first option. It's more concise.
Jimmy Wong