HOW TO INSTALL EMACS IN LUBUNTU

  1. PREREQUISITES
$ sudo apt update && apt upgrade -y
$ sudo apt install build-essential libncurses-dev
  1. DOWNLOAD THE SOURCE CODE
$ wget https://mirrors.tuna.tsinghua.edu.cn/gnu/emacs/emacs-26.1.tar.gz
$ tar -xzvf emacs-26.1.tar.gz
  1. BUID THE SOURCE CODE
$ cd emacs-26.1/
$ ./configure --without-x --with-gnutls=no
$ make
$ sudo make install
$ emacs
  1. START EMACS SERVER
$ git clone https://github.com/jzztf/dotemacs.d.git .emacs.d
$ emacs # build&install packages
$ emacs --daemon
$ echo "alias e='emacsclient -t'" >> .bashrc
$ e

Comments