Skip to content

Instantly share code, notes, and snippets.

@angelotrivelli
Last active January 20, 2018 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelotrivelli/88edbcaaab0d27d2d607954a4b82830a to your computer and use it in GitHub Desktop.
Save angelotrivelli/88edbcaaab0d27d2d607954a4b82830a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
set -x
cd ~
# some prerequisites
yes | sudo yum update
yes | sudo yum install git
yes | sudo yum groupinstall "Development tools"
yes | sudo yum install ncurses-devel
# download, compile, install emacs 25.3
mkdir ~/emacs_install ; cd ~/emacs_install
git clone --depth 1 --branch emacs-25.3 git://git.sv.gnu.org/emacs.git
cd emacs
./autogen.sh
./configure
make
sudo make install
cd ~
rm -rf emacs_install
emacs --version
yes | sudo yum grouperase "development tools"
yes | sudo yum erase ncurses-devel
# install prelude for emacs
cd ~
curl -L https://git.io/epre | sh
# personalized module settings for prelude
cd ~
wget -O prelude-modules.el https://gist.githubusercontent.com/angelotrivelli/3a4f0e2bf23125eccf97a7a9b2c18905/raw/e242847fca1abce45b9f54d21a3e97c6164781f3/prelude-modules.el
mv ~/.emacs.d/prelude-modules.el ~/.emacs.d/prelude-modules_BACKUP.el
mv ~/prelude-modules.el ~/.emacs.d/prelude_modules.el
# java jdk
cd ~
java -version
yes | sudo yum install java-1.8.0-openjdk-devel
sudo alternatives --set java /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
sudo alternatives --set javac /usr/lib/jvm/java-1.8.0-openjdk.x86_64/bin/javac
yes | sudo yum remove java-1.7.0-openjdk
java -version
# lein
cd ~
wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
sudo mv lein /usr/bin/
chmod a+x /usr/bin/lein
lein
# favorite aliases
cd ~
echo alias e=\"emacsclient -t -a=''\" >> .bashrc
# add more here...
# finally make aliases active with this
source .bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment