Minimal install on M1 macbook pro

Yes, install minimal, then use tty to set up your system as you want. Use nmcli to connect to wifi.
If you want to use gui emacs see this Wayland native Emacs for terminal emacs you can just use one of the options in official repos.