# install needed libraries sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel # compile autoconf cd /tmp wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2 tar xjvf autoconf-2.68.tar.bz2 cd autoconf-2.68/ ./configure && make && sudo make install # compile emacs 24.3 cd /tmp curl -L https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz | tar zx cd emacs-emacs-24.3.91 ./autogen.sh && ./configure --with-jpeg=no && make bootstrap && sudo make install cd .. # install cask for emacs config management curl -fsSkL https://raw.github.com/cask/cask/master/go | python # install config cd ~ git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d cd .emacs.d ~/.cask/bin/cask ########################## # Other actions ########################## # Add aliases on linux #alias emacsdaemon="/usr/local/bin/emacs --daemon" #alias ec='emacsclient -c -a "" $*' # one liner compile from terminal # https://gist.github.com/marcwebbie/27f637653fe038c530e7/raw/dac422c74ed0bdd8c846764c27aeb94ddc335732/compile_emacs.sh | sh # one liner reinstall config # cd ~ && sudo rm -rf .emacs.d && git clone git://github.com/marcwebbie/emacs.git ~/.emacs.d && cd .emacs.d && ~/.cask/bin/cask # puppet manifest example (http://superuser.com/questions/415047/install-a-source-package-with-puppet) #netinstall { 'emacs-24.3': # url => 'https://github.com/mirrors/emacs/archive/emacs-24.3.91.tar.gz', # extracted_dir => 'emacs-24.3', # destination_dir => '/tmp', # postextract_command => '/tmp/emacs-24.3/autogen.sh && configure --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no #--with-tiff=no && make && sudo make install' #} # Generate TAGS manually #find . -regex ".*\(haml$\|rb$\|erb\)" | etags - # compile emacs from git #git clone git://git.savannah.gnu.org/emacs.git #cd emacs #./autogen.sh #./configure --with-jpeg=no #make && sudo make install