HOW TO INSTALL EMACS IN LUBUNTU
- PREREQUISITES
 
$ sudo apt update && apt upgrade -y
$ sudo apt install build-essential libncurses-dev
 
- 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
 
- BUID THE SOURCE CODE
 
$ cd emacs-26.1/
$ ./configure --without-x --with-gnutls=no
$ make
$ sudo make install
$ emacs
 
- 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