Last active
October 24, 2020 13:55
-
-
Save pchan37/b30d9fc4a3d110410855295bf2287653 to your computer and use it in GitHub Desktop.
Install Emacs on Elementary OS
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
#!/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