- Set $XDG_CONFIG_HOME
paru -S meta-xdg
- Set $DOOMDIR
/etc/profile.d/meta-emacs.sh
#!/bin/sh source /etc/profile.d/xdg.sh echo ${XDG_CONFIG_HOME} if [[ -z "${XDG_CONFIG_HOME}" ]]; then export DOOMDIR="${HOME}/.config/doom/" else export DOOMDIR="${XDG_CONFIG_HOME}/meta-emacs" fi
test:
echo $DOOMDIR
- Install fonts
git clone --depth 1 https://github.com/doomemacs/doomemacs.git $(test -n "$XDG_CONFIG_HOME" && echo "$XDG_CONFIG_HOME/emacs" || echo "~/.emacs.d")
gh repo clone yanboyang713/meta-emacs $(test -n "$XDG_CONFIG_HOME" && echo "$XDG_CONFIG_HOME/meta-emacs" || echo "~/.config/doom/")
$(test -n "$XDG_CONFIG_HOME" && echo "$XDG_CONFIG_HOME/emacs" || echo "~/.emacs.d")/bin/doom install
$(test -n "$XDG_CONFIG_HOME" && echo "$XDG_CONFIG_HOME/emacs" || echo "~/.emacs.d")/bin/doom sync
emacs --debug-init