Define my:format-whole-buffer as a function