Add magit and markdown support.
Store desktop on exit.