Created
December 30, 2022 16:04
-
-
Save KasRoudra/5e2496818cecdc1dcc4f7088a64d4275 to your computer and use it in GitHub Desktop.
Automate doom emacs configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install GNU Emacs | |
sudo pacman -S emacs | |
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d | |
~/.emacs.d/bin/doom install | |
~/.emacs.d/bin/doom sync | |
echo " | |
[Unit] | |
Description=Emacs Daemon | |
After=syslog.target network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/emacs --daemon | |
[Install] | |
WantedBy=multi-user.target | |
" | sudo tee /lib/systemd/system/emacs.service > /dev/null | |
cp /lib/systemd/system/emacs.service /etc/systemd/system/emacs.service | |
sudo systemctl enable --now emacs | |
# For dmenu :) | |
echo "emacsclient -c -a 'emacs'" | sudo tee /usr/bin/emclient > /dev/null | |
sudo chmod 777 /usr/bin/emclient |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment