-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·51 lines (39 loc) · 918 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
EMACS=$(which emacs)
git submodule init
git submodule update --rebase
pushd cedet-bzr/trunk
make EMACS="$EMACS"
CEDET=$(pwd)
popd
pushd ecb
make EMACS="$EMACS" CEDET="$CEDET"
popd
# Setup Python environment
sudo easy_install jedi epc
sudo easy_install rope ropemode ropemacs
git clone git://github.com/pinard/Pymacs.git
pushd Pymacs
sudo make install
sudo cp pymacs.el /usr/share/emacs/site-lisp/pymacs.el
popd
# Setup java environment
# install eclipse and m2e plugin
git clone git://github.com/ervandew/eclim.git
pushd eclim
ant clean deploy -Declipse.home=/usr/lib64/eclipse
popd
cat >~/.eclimrc <<EOF
# workspace dir
osgi.instance.area.default=@user.home/Work/
# increase heap size
-Xmx256M
# increase perm gen size
-XX:PermSize=64m
-XX:MaxPermSize=128m
EOF
ln -sf $PWD/dot-emacs $HOME/.emacs
cat >>$HOME/.bashrc <<EOF
# Emacs specific aliases and functions
. "$HOME/.emacs.d/dot-bashrc"
EOF