Add mark utility

And move C-q mapping to this file.