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