It is easy to use sudo to handle the problem
sudo apt-get install build-essential sudo apt-get build-dep emacs24
Unfortunately, it is always not that easy to install something on a public server, so that you need to build the package from source code.
- Download latest Index of /gnu/emacs . Choose one of the version you like, end with tar.gz
Untar your downloaded file.
tar -zxvf *.tar.gz # * is the name you your file
change to the directory, where you just unpack your emacs, usually have the same name as your downloaded file.
configure your building configuration.
./configure —prefix=/home/baconzhou/software/emacs —bindir=/home/baconzhou/bin
it will install all the eamcs’s support files under
/home/baconzhou/software/emacs, and create the emacs executables in
build the package
make && make install
Install other packages
- ESS ESS stands for Emacs Speaks Statistics, Most useful package, which can call R from emacs.
- MELPA MELPA stands for Milkypostman’s Emacs Lisp Package Archive, you can find lots of packages on it for emacs. It is just like an cran on R, you can follow the instruction here Getting statred
- stan-mode: Emacs mode for Stan. I write stan for data analysis, it is really powerful.