I've been trying to get midnight-mode to add to the following list. I have a feeling it has to do with an elisp error in my config I'm not seeing. It works fine with setq, but with add-to-list I get a type error:
clean-buffer-list: Format specifier doesn’t match argument type
(add-to-list 'clean-buffer-list-kill-regexps '("^magit" "\.log$"))
I tried many variants of this with single quotes around the inside like in the docs \'^magit\'" I no longer get the error, but I also don't get a match. If I use just one item not in a list, it also works, but I want to add several things here.
My Final Solution
(setq clean-buffer-list-kill-regexps (nconc clean-buffer-list-kill-regexps '( "\\`magit" "\\.log\\'" )))
Corrected the wiki error, for further information see: https://www.emacswiki.org/emacs/CleanBufferList