Current with C, Javascript, Ruby, etc. when inserting a block with {
<RETURN>
, Emacs automatically indents the next line, but it does so with spaces. How do I change this behavior to tab characters? The follow is my configuration.
(setq-default tab-width 2)
(setq-default c-basic-offset 2)
(setq-default indent-tabs-mode t)
This sets the indention level to 2 (for C and Ruby, but strangely 4 for Javascript), but it still inserts spaces rather than tabs.
C-h v
indent-tabs-mode
from one of the buffers in question to check its actual value in that buffer. As Dan says, presumably some other config is overriding your default.