I have Emacs run in daemon mode at system startup, and run emacsclient automatically when I login to X. I also recently started running
midnight-mode, which regularly runs
clean-buffer-list, which wants to kill the buffer showing my home folder since I rarely visit it. This is a problem because that buffer is associated with the emacsclient invocation, so killing it closes all my frames.
Is there a way to decouple emacsclient from that particular buffer? I have to run emacsclient on something in order for it to open a window, so I give it $HOME.
Alternatively, is there a way to get
clean-buffer-list to look at
server-buffer-clients and skip buffers with it set?