Switch to using ~/.config/emacs/ instead of ~/.emacs.d/ for Emacs config

This commit is contained in:
Evie Litherland-Smith 2024-09-07 08:17:51 +01:00
parent 3fd4dda8db
commit 4e650e176b

View file

@ -1,5 +1,5 @@
# Clone ~/.emacs.d/ if it doesn't exist
EMACS_DIR="$HOME/.emacs.d/"
# Clone ~/.config/emacs/ if it doesn't exist
EMACS_DIR="${XDG_CONFIG_DIR:=$HOME/.config}/emacs/"
if [ ! -d "$EMACS_DIR" ]; then
git clone "https://git.xenia.me.uk/pixelifytica/emacs.git" "$EMACS_DIR"
fi