diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-09-27 19:55:04 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-09-27 19:55:04 -0400 |
commit | a1339f6d1613ee307cf7d4ab2594d0aac4837aaf (patch) | |
tree | 70c45d2963bc8cae6fc7191899d0862b40b3bc26 /setup.sh | |
parent | 8684a8d92906692f9d2e954307c06a8c5786f6e2 (diff) |
Migrate doom to chemacs. Start new emacs config
Diffstat (limited to 'setup.sh')
-rwxr-xr-x | setup.sh | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -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 |