comparison unixSoft/otherbin/emacs.sh @ 522:7983184eb8d8

emacs.sh: hack together fallback to vscode Lately if emacs is not running I prefer using vscode. This allows my muscle memory to keep working.
author Augie Fackler <raf@durin42.com>
date Sun, 31 Jul 2022 22:34:33 -0400
parents b403402153b5
children
comparison
equal deleted inserted replaced
521:6cc5a0550281 522:7983184eb8d8
1 #!/bin/sh 1 #!/bin/sh
2 if [ "`uname`" = "Darwin" ] ; then 2 if [ "`uname`" = "Darwin" ] ; then
3 open -a emacs "$@" 3 if hash code 2>/dev/null ; then
4 if [ "$1" = "-n" ] ; then
5 shift
6 code "$@"
7 else
8 code --wait "$@"
9 fi
10 else
11 open -a emacs "$@"
12 fi
4 else 13 else
5 emacs -nw "$@" 14 emacs -nw "$@"
6 fi 15 fi