~replaced spc, spu -> editor

I really don't use emacs server anymore, it's kinda annoying and the
online features just don't work. Therefore, I'm just going to use Emacs
GUI directly.

This obsoletes spc and spu, which means I need a new command. This
command is editor, which nohups and reroutes the output of Emacs to
/dev/null and disjoins it from the terminal.
This commit is contained in:
AChavali
2020-02-09 20:43:35 +00:00
parent b08f4c8869
commit 1e45f2818a

8
zshenv
View File

@@ -14,12 +14,8 @@ export ZSH_THEME="af-magic"
export XDG_RUNTIME_DIR=/run/user/`id -u`
# Programming
spc() { # Use this to create a new frame quickly. Also when you just want to open Emacs.
emacsclient -c -a=emacs --socket-name=MAIN $1 & disown
}
spu() { # Use this for times where you've already got a emacsclient frame open
emacsclient --socket-name=MAIN $1 & disown
editor() {
nohup emacs $1 > /dev/null &
}
gentemplate() {