Skip to content

Instantly share code, notes, and snippets.

@pchan37
Last active October 24, 2020 13:55
Show Gist options
  • Save pchan37/b30d9fc4a3d110410855295bf2287653 to your computer and use it in GitHub Desktop.
Save pchan37/b30d9fc4a3d110410855295bf2287653 to your computer and use it in GitHub Desktop.
Install Emacs on Elementary OS
#!/bin/bash -e
sudo apt update -y
sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-elisp/ppa -y
sudo apt update && sudo apt install emacs25
# emacs25.desktop:
cp /usr/share/applications/emacs25.desktop ~/.local/share/applications
# Replace the Exec line with: Exec=Exec=/usr/bin/env XLIB_SKIP_ARGB_VISUALS=1 emacsclient -a '' -n -c %F
# defaults.list
cp /usr/share/applications/defaults.list ~/.local/share/applications
# Replace gedit with emacs25.desktop
# Modify System Settings -> Applications -> Defaults -> Emacs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment