aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAChavali <aryadevchavali1@gmail.com>2020-02-09 20:43:35 +0000
committerAChavali <aryadevchavali1@gmail.com>2020-02-09 20:43:35 +0000
commit1e45f2818a820cf14305819f4226f121414c23b2 (patch)
tree74861d47605942149b657b3ce985c3f482237819
parentb08f4c8869b50b1000c1c485d50b623616468237 (diff)
downloaddotfiles-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.
-rw-r--r--zshenv8
1 files changed, 2 insertions, 6 deletions
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() {