This is my personal Emacs 28.2 configuration when I'm using Arch and Ubuntu on WSL2. If you prefer an unopinionated lightweight Emacs config that you could build upon, check out this page.
Back up your ~/.emacs.d/
first (if you have one):
mv ~/.emacs.d ~/.emacs.d.bak
Git clone my configuration to your new ~/.emacs.d/
:
git clone https://github.com/ianyepan/.wsl-emacs.d.git ~/.emacs.d
I will constantly push new commits since a real Emacser is never completely satisfied with their setup ;-)