Greatly simplify get_cairo_context
Add Emacs mode line