Ubuntu 编译安装 Emacs 26.2

sudo apt-get install build-essential libncurses-dev
aria2c https://ftpmirror.gnu.org/emacs/emacs-26.2.tar.gz
tar -zxvf emacs-26.2.tar.gz
cd emacs-26.2
# --without-x 仅用于控制台环境,如果需要GUI界面还要安装其它开发包
./configure --without-x --with-gnutls=no
# 编译
make
# 安装
sudo make install
emacs --version

编译的是纯命令行版本,没有图形界面。