I currently have a region of text selected. I want to kill/yank (or format in any other way) the whole buffer except the selected region. Is there any way in which I can do an invert selection in emacs and accomplish the same?
kill-region
the text in the middle.mark-whole-buffer
the rest of the text.yank
the middle text.