346 B
346 B
Title: Emacs: replace tabs with spaces Date: 2011-05-06 18:27:59
When you want to replace tab with spaces or vice versa don't use M-%
(query-replace) but M-x tabify
or M-x untabify
. They work on the
current selection so if you want it to be applied to a whole buffer,
try C-x h
(mark-whole-buffer) before to select the whole buffer.