annotate .shell.d/50.editorsetup.sh @ 513:ad9ca178e094

hg: add crevert alias for curses-revert
author Augie Fackler <raf@durin42.com>
date Thu, 03 Jun 2021 14:25:21 -0400
parents 1a3f8dff1214
children 7983184eb8d8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
b403402153b5 Add some setup to make emacs easier to use on OS X.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
1 export ALTERNATE_EDITOR=$HOME/unixSoft/otherbin/emacs.sh
b403402153b5 Add some setup to make emacs easier to use on OS X.
Augie Fackler <durin42@gmail.com>
parents:
diff changeset
2 alias e='emacsclient -n'
407
c911585b7a7b editors: add ee alias for emacsclient with blocking
Augie Fackler <raf@durin42.com>
parents: 44
diff changeset
3 alias ee='emacsclient'
463
1a3f8dff1214 editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents: 407
diff changeset
4 if [ -z "$SSH_CONNECTION" ] ; then
1a3f8dff1214 editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents: 407
diff changeset
5 # GUI session, use emacsclient
1a3f8dff1214 editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents: 407
diff changeset
6 export EDITOR=emacsclient
1a3f8dff1214 editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents: 407
diff changeset
7 else
1a3f8dff1214 editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents: 407
diff changeset
8 # SSH session
1a3f8dff1214 editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents: 407
diff changeset
9 export EDITOR=vi
1a3f8dff1214 editor: if it looks like I'm over ssh, use vi not emacs
Augie Fackler <raf@durin42.com>
parents: 407
diff changeset
10 fi