<file_sep>#!/usr/bin/env bash

echo ""

if ! [[ -x "$(command -v emacs)" ]]; then
  echo "emacs not found. Is it installed?" >&2
  exit
fi

rm -rf ~/.emacs.d

mkdir ~/.emacs.d
ln -s ~/repos/editors/init.el ~/.emacs.d/init.el
mkdir ~/.emacs.d/lisp

echo "Install dependencies:"

# C/C++
sudo apt install xclip
./emacs_pkgs.el

echo "!!!!!!!!"
echo "Remember to install One Dark Pro theme for vscode"
echo "!!!!!!!!"
rm ~/.config/Code/User/settings.json
rm ~/.config/Code/User/keybindings.json
mkdir -p ~/.config/Code/User/
ln -s ~/repos/editors/vscode_settings.json ~/.config/Code/User/settings.json
ln -s ~/repos/editors/vscode_keybindings.json ~/.config/Code/User/keybindings.json
<file_sep># Useful Bindings

|Key|Function|
|---|--------|
|C-c m|compile (execute Makefile)|
|C-c f|Auto-complete file path|
|C-c c|Auto-complete code|
|C-c h|helm command prefix|
|C-c h o|helm-occur|
|C-c h i|helm-semantic (File outline)|
|C-c s|open sr-speedbar|
|C-S-c C-S-c|mc/edit-lines|
|C-q|mc/mark-next-like-this|
|C-c C-q|mc/mark-all-like-this|
