diff options
author | AChavali <aryadevchavali1@gmail.com> | 2020-02-09 20:43:35 +0000 |
---|---|---|
committer | AChavali <aryadevchavali1@gmail.com> | 2020-02-09 20:43:35 +0000 |
commit | 1e45f2818a820cf14305819f4226f121414c23b2 (patch) | |
tree | 74861d47605942149b657b3ce985c3f482237819 /zshenv | |
parent | b08f4c8869b50b1000c1c485d50b623616468237 (diff) | |
download | dotfiles-1e45f2818a820cf14305819f4226f121414c23b2.tar.gz dotfiles-1e45f2818a820cf14305819f4226f121414c23b2.tar.bz2 dotfiles-1e45f2818a820cf14305819f4226f121414c23b2.zip |
~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.
Diffstat (limited to 'zshenv')
-rw-r--r-- | zshenv | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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() { |