diff options
author | A. Chavali <aryadevchavali1@gmail.com> | 2019-12-20 20:00:59 +0000 |
---|---|---|
committer | A. Chavali <aryadevchavali1@gmail.com> | 2019-12-20 20:10:39 +0000 |
commit | 0f0897c0a141f76db6a01878e32e75a4884307ba (patch) | |
tree | 6b99f314fbf07d8c4183b9a4abea4f375e7b42a2 | |
parent | 62295b083b39d4244a1aa9f965b7289a56b6152f (diff) | |
download | dotfiles-0f0897c0a141f76db6a01878e32e75a4884307ba.tar.gz dotfiles-0f0897c0a141f76db6a01878e32e75a4884307ba.tar.bz2 dotfiles-0f0897c0a141f76db6a01878e32e75a4884307ba.zip |
~redid Emacs commands from terminal
Instead of SPC you have two commands:
+ spc: Opens a new frame with a file open
+ spu: Updates a currently opened frame with this new file
-rw-r--r-- | zshenv | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -7,13 +7,16 @@ export EDITOR="vim" export SHELL="zsh" alias yapf='python2 -m yapf' alias clip="xclip -sel clip" -alias e="emacsclient -c " alias paste="xclip -o" export force_color_prompt=yes # Programming -SPC() { - emacs $1 & disown > /dev/null; +spc() { + emacsclient -c --socket-name=MAIN $1 & disown +} + +spu() { # Use + emacsclient --socket-name=MAIN $1 & disown } gentemplate() { |