Skip to content

Latest commit

 

History

History
113 lines (95 loc) · 3.14 KB

emacs.org

File metadata and controls

113 lines (95 loc) · 3.14 KB

Setting up iiEmacs

Install and Configure tmate

sudo apt-get install -y tmate
cat <<EOF > ~/.tmate.conf
set-option -g set-clipboard on
set-option -g mouse on
set-option -g history-limit 50000
set -g tmate-server-host pair.ii.nz
set -g tmate-server-port 22
set -g tmate-server-rsa-fingerprint   "f9:af:d5:f2:47:8b:33:53:7b:fb:ba:81:ba:37:d3:b9"
set -g tmate-server-ecdsa-fingerprint   "32:44:b3:bb:b3:0a:b8:20:05:32:73:f4:9a:fd:ee:a8"
set -g tmate-identity ""
set -s escape-time 0
EOF

Emacs Snapshot PPA

This installs emacs-snapshot on ubuntu bionic… though any process that gives us emacs 27.0.50 is probably fine. Be sure that no ether .elc files are loaded

if [ $(lsb_release -i -s) == "Debian" ] ; then
  CODENAME=$(lsb_release -c -s)
  sudo apt-key adv \
  --recv-keys AD287B4E92138B93 \
  && sudo add-apt-repository \
  "deb http://emacs.ganneff.de/ $CODENAME main" \
  && sudo apt-get install -y \
  emacs-snapshot
fi
if [ $(lsb_release -i -s) == "Ubuntu" ] ; then
  CODENAME=$(lsb_release -c -s)
  sudo apt-key adv \
  --recv-keys 0D7BAE435ADBC6C3E4918A74062D648FD62FCE72 \
  && sudo add-apt-repository \
  "deb http://ppa.launchpad.net/ubuntu-elisp/ppa/ubuntu $CODENAME main" \
  && sudo apt-get install -y \
  emacs-snapshot
fi

ELPA Mirror

We use spacemacs, and it takes a while to download / configure / compile all the lisp files.

One of the larger components that is much faster to have local is our elpa-mirror.

sudo git clone --depth 1 -b stable \
    https://github.com/ii/elpa-mirror \
    /usr/local/elpa-mirror

Configuring Emacs

git clone --depth 1 -b stable \
    https://github.com/ii/spacemacs.git \
    ~/.emacs.d \
  && git clone --depth 1 \
    https://gitlab.ii.coop/ii/tooling/ob-tmate.git \
    ~/.emacs.d/private/local/ob-tmate.el \
  && git clone --depth 1 \
    https://gitlab.ii.coop/ii/tooling/dot-spacemacs.git \
    ~/.emacs.d/private/local/dot-spacemacs \
  && ln -s .emacs.d/private/local/dot-spacemacs/.spacemacs ~/.spacemacs \
  && ln -sf private/local/dot-spacemacs/.lock ~/.emacs.d/.lock

Compiling Elisp Configuration / Installing Packages

emacs --batch -l ~/.emacs.d/init.el

Request they configure gitlab

echo Add something like the following to your ~/.gitconfig
cat <<EOF
[user]
  email = [email protected]
  name = Hippie Hacker
[alias]
  lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
  create-pull-request = !sh -c 'stash pull-request $0'
  lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
EOF