20 lines
559 B
Bash
Executable File
20 lines
559 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
DOTFILES="${HOME}/.config/literate-dotfiles"
|
|
DOOM="${HOME}/.config/emacs/bin/doom"
|
|
|
|
echo "==> Emacs packages"
|
|
paru -S --needed emacs aspell aspell-en aspell-fr
|
|
|
|
echo "==> Installing Doom Emacs"
|
|
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
|
|
"${DOOM}" install --no-config
|
|
|
|
echo "==> Tangling doom.org"
|
|
emacsclient -e "(org-babel-tangle-file \"${DOTFILES}/doom.org\")" \
|
|
|| emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/doom.org\")"
|
|
|
|
echo "==> Running doom sync"
|
|
"${DOOM}" sync
|