Install emacs25-nox by entering the following commands in the terminal:
sudo apt update sudo apt install emacs25-nox
Description:
GNU Emacs editor (without GUI support)
GNU Emacs is the extensible self-documenting text editor. This package contains a version of Emacs compiled without support for X, and provides only a text terminal interface.
Homepage: http://www.gnu.org/software/emacs/
Version: 25.2+1-6
Section: editors