#!/bin/sh
for editor in gedit kedit emacs gvim ; do
    if [ -x "`which $editor`" ]; then
        exec "$editor" $@
    fi
done

