From 1e45f2818a820cf14305819f4226f121414c23b2 Mon Sep 17 00:00:00 2001 From: AChavali Date: Sun, 9 Feb 2020 20:43:35 +0000 Subject: ~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. --- zshenv | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'zshenv') diff --git a/zshenv b/zshenv index 957b833..c807407 100644 --- a/zshenv +++ b/zshenv @@ -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() { -- cgit v1.2.3-13-gbd6f