Mercurial > dotfiles
annotate .shell.d/50.editorsetup.sh @ 473:f86c1048a46d
emacs: hack up my textmate.el some more to add searching config
This gives up and use a bonus grep for extension filtering because I can't
quite make the rg flags work like the grep one, and this gets the job done
with minimal fuss.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 01 Feb 2019 16:25:05 -0500 |
parents | 1a3f8dff1214 |
children | 7983184eb8d8 |
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 |