Install pre-requisited tools
sudo zypper install make gcc automake autoconf libtool aclocal wget
sudo zypper si -d emacs
Download Emacs source tarball
wget https://ftp.gnu.org/pub/gnu/emacs/emacs-27.2.tar.gz
Extract and change directory
tar xzvf emacs-27.2.tar.gz
cd emacs-27.2
Generate makefiles
./configure --prefix=/opt > log
Make
make -j `nproc`
Install
sudo make install
Add path
Add the line below to ~/.bashrc by nano ~/.bashrc
export PATH="/opt/bin:$PATH"
Top comments (0)