To force Emacs to insert spaces instead of tabs when you press the TAB key:
M-x set-variable<RET> indent-tabs-mode<RET> nil
Or in your .emacs file:
(setq-default indent-tabs-mode nil)
For more info:
http://www.student.northpark.edu/pemente/emacs_tabs.htm