add ctrl-q mapping to write and quit