Commands
C-x h # highlight/mark whole buffer M-x untabify # replace tabs with spaces M-x tabify # replace spaces with tabs