emacs no sudo install


とりあえずこれでできた

$ mkdir /home/user_name/src
$ cd /home/user_name/src
$ wget http://ftp.gnu.org/pub/gnu/emacs/emacs-26.1.tar.gz
$ tar zxvf emacs-26.1.tar.gz
$ cd emacs-26.1.tar.gz
$ mkdir /home/user_name/emacs
$ mkdir /home/user_name/bin
$ ./configure --prefix=/home/user_name/emacs --bindir=/home/user_name/bin --without-x --with-gnutls=no
$ make
$ make install
$ which emacs
~/bin/emacs

gnutlsがないエラー回避のために--with-gnutls=no

参考

http://vdeep.net/centos7-emacs
https://superuser.com/questions/637979/install-emacs-without-sudo
https://notchained.hatenablog.com/entry/2017/10/10/084933