Modified version of ascope.el for Emacs written by Staton Sun