Building GNU Emacs
I use the following commands to build GNU Emacs from source.
git clone https://git.savannah.gnu.org/git/emacs.git cd emacs ./autogen.sh ./configure --with-pgtk --with-tree-sitter --prefix=$HOME/opt/emacs # ./configure --help make make install
For more details, see INSTALL.REPO.