From: Don Armstrong Date: Fri, 2 Apr 2010 13:55:26 +0000 (+0000) Subject: use emacs client and deprecate jed and juno in favor of vi X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=edaff4d1c50a0eae38d19ae673ab845b7d37805a;p=bin.git use emacs client and deprecate jed and juno in favor of vi --- diff --git a/sane_editor b/sane_editor index b12b99f..56c98d9 100755 --- a/sane_editor +++ b/sane_editor @@ -9,17 +9,14 @@ # ed # modify the gsrvdir check to search for directories that are owned by me +if [ -x /usr/bin/emacsclient ] && [ -x /usr/bin/emacs ]; then + exec emacsclient -c "$@"; +fi; if [ -x /usr/bin/gnuclient ] && [ -x /usr/bin/emacs ]; then if ( gnuclient -batch < /dev/null >/dev/null); then exec gnuclient "$@"; fi; fi; -if [ -x /usr/bin/jed ]; then - exec jed "$@"; -fi; -if [ -x /usr/bin/juno ]; then - exec juno "$@"; -fi; if [ -x /usr/bin/vi ]; then exec vi "$@"; fi;