version: emacs23 23.2+1-7
I am trying to get Emacs to write a TAB instead of spaces when hitting the [tab] key. I have my .emacs configured as follows.
(defun my-c-mode-hook ()
(setq c-basic-offset 4)
(setq indent-tabs-mode t)
(local-set-key (kbd "RET") 'newline-and-indent))
(add-hook 'c-mode-hook 'my-c-mode-hook)
While in c-mode, Emacs inserts 4 spaces when hitting the [tab] key. Is there anything else that needs to be added on the configuration?