Manipulate buffers based on their major mode.