So I have been trying to work out how to refactor (I think that\'s the right term) C++ in emacs. I\'m pretty new to emacs, but I have found out this semantic method: