summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-09-27 19:55:04 -0400
committerKjetil Orbekk <kj@orbekk.com>2022-09-27 19:55:04 -0400
commita1339f6d1613ee307cf7d4ab2594d0aac4837aaf (patch)
tree70c45d2963bc8cae6fc7191899d0862b40b3bc26 /setup.sh
parent8684a8d92906692f9d2e954307c06a8c5786f6e2 (diff)
Migrate doom to chemacs. Start new emacs config
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh19
1 files changed, 10 insertions, 9 deletions
diff --git a/setup.sh b/setup.sh
index 81a667d..0c85ba8 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
-STOW="stow -R --no-folding -v"
+STOW="stow -R --no-folding"
cd "$(dirname $0)"
git submodule update --init --recursive --depth 1
@@ -13,6 +13,7 @@ $STOW common
$STOW zsh
$STOW direnv
$STOW xbindkeys
+$STOW emacs
touch $HOME/.zshrc.local
source $HOME/.zshenv
@@ -28,13 +29,14 @@ if [[ $# -ge 1 && $1 == "fast" ]]; then
exit
fi
-if which emacs >/dev/null; then
- $STOW emacs
- if [[ ! -e ~/.emacs.d ]]; then
- git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
- fi
- doom install
- doom sync # Too slow!
+doom_path=~/build/doom-emacs
+if which emacs >/dev/null && [[ ! -e $doom_path ]]; then
+ git clone https://github.com/plexus/chemacs2.git ~/.config/emacs
+ unset DOOMDIR
+ unset EMACSDIR
+ git clone --depth 1 https://github.com/hlissner/doom-emacs $doom_path
+ $doom_path/bin/doom install
+ $doom_path/bin/doom sync # Too slow!
fi
fc-cache || true
@@ -43,7 +45,6 @@ tools=(
rg
fzf
bat
- exa
most
emacs
git