Let math/gnuplot build without emacs by default,

move emacs stuff to a FLAVOR,
and use a slightly more modern version of emacs when enabled.