3 ms·
In my .bashrc I have: export ALTERNATE_EDITOR='' alias e='emacsclient -t' Now $ e file.txt will fire up emacsclient to connect to a running emacs daem
by pja 15y ago
In my .bashrc I have:
export ALTERNATE_EDITOR=''
alias e='emacsclient -t'
Now
$ e file.txt
will fire up emacsclient to connect to a running emacs daemon. If there is no emacs daemon running it will start one for you and then connect to it.
You can
export VISUAL="emacsclient -t"
export EDITOR='emacsclient -t'
for good measure if you like.