Created
December 4, 2017 10:59
-
-
Save JeremyOttley/c1ad91d4a38a8ecca4177858d932efa3 to your computer and use it in GitHub Desktop.
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
# OSmacs # | |
cd ~ | |
git clone https://github.com/Gazaunga/OSmacs.git ~/.emacs.d | |
pacaur -Syu --noconfirm --noedit xorg emacs-git ruby qutebrowser-git nerd-fonts-git osx-el-capitan-theme-git lxappearance mpv-git bomi-git byobu xorg-fonts-75dpi xorg-fonts-100dpi sddm | |
#sudo systemctl enable sddm.service | |
touch ~/.xinitrc | |
cat > ~/.xinitrc <<EOF | |
#exec emacs --daemon & | |
emacsclient -nc | |
setxkbmap -option 'ctrl:swapcaps' | |
EOF | |
touch emacs.service | |
cat > emacs.service <<EOF | |
[Unit] | |
Description=Emacs: the extensible, self-documenting text editor | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/emacs --daemon | |
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" | |
Restart=always | |
[Install] | |
WantedBy=default.target | |
EOF | |
sudo mv -f emacs.service ~/.config/systemd/user/emacs.service | |
systemctl --user enable --now emacs | |
touch ~/.pam_environment | |
cat > ~/.pam_environment <<EOF | |
VISUAL="emacsclient" | |
EDITOR="emacsclient" | |
ALT_EDITOR="emacsclient -a "" -t" | |
BROWSER="qutebrowser" | |
TERMINAL="konsole" | |
EOF | |
cat > ~/.bash_profile <<-EOF | |
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then | |
exec startx | |
fi | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment