Last time I want to install the latest emacs on our linux server, cause Emacs can do a lot of things, write code, run R Ess, sending email, and tutorial
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.
Build emacs
- 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.
cd *
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/home/baconzhou/bin
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.