Skip to content

Instantly share code, notes, and snippets.

@KasRoudra
Created December 30, 2022 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KasRoudra/5e2496818cecdc1dcc4f7088a64d4275 to your computer and use it in GitHub Desktop.
Save KasRoudra/5e2496818cecdc1dcc4f7088a64d4275 to your computer and use it in GitHub Desktop.
Automate doom emacs configuration
# 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