I am trying out flymake instead of flycheck (mostly because flycheck had some problem with eglot and switching to flymake) fixed it.
The two things I am missing are
The modeline indicator but that is a small thing and I think I should be able to recreate it.
Sensible errors in my private doom config. When I enable flycheck errors I get inundated by errors which are relevant in an elisp package but not my private config. Those coming from checkdoc I can disable by removing elisp-flymake-checkdoc from flymake-diagnostic-functions but how do I disable those warning about function not known to be defined etc? I try looking at the flycheck module but there doesn’t seem to be anything there that would take care of this.
And the function my-elisp-config-flymake-byte-compile is a modified version of elisp-flymake-byte-compile which passes some extra args to the emacs process:
The extra args silence the byte compiler warnings about free variables and functions not known to be defined (since they are mostly false positives for the config) and docstring problems. They are also used to load the doom.el so that the core doom stuff is defined and byte-compiler can warn about wrong calling conventions etc.
It would be better to be able to load enabled modules as well but I haven’t figured out that part yet.