add writer mode and have it start up when markdown files are opened