emacs-config/install_deps

20 lines
412 B
Plaintext
Raw Normal View History

2021-06-12 00:18:03 -04:00
#!/bin/bash
## Install all dependencies for emacs to run at full capacity
2022-06-29 20:51:39 -04:00
EMACS_PKG=emacs-nativecomp
if ! command -v emacs > /dev/null; then
if sudo pacman -S "$EMACS_PKG"; then
echo "Could not install emacs. Exiting"
exit 1
fi
2021-06-12 00:18:03 -04:00
fi
2022-06-29 20:51:39 -04:00
if command -v yay > /dev/null; then
emacs -batch -l init.el -f nd/install-arch-dependencies
else
echo "Yay not installed. Exiting"
exit 1
fi