I just realized that the feature is only available in C/C++ mode. There is no such thing as (setq ruby-tab-always-indent nil). Based on the previous reply, I have been inserting tabs in ruby-mode using C-Q TAB and it works. However, after inserting tabs this way many times, my fingers get tired. How can I define a short cut using a control key to enter C-Q TAB? It it something like (global-set-key "\C-f" 'xxxx) but I don't know what to enter in xxxx. Thanks. Regards, Bill ========================================================================== Jim Menard <jimm / io.com> wrote in message news:<wsq665vf8dw.fsf / io.com>... > Jim Weirich <jweirich / one.net> writes: > > > >>>>> "Bill" == Bill Tj <billtj / glue.umd.edu> writes: > > > > Bill> By the way, in the C or C++ mode, hitting TAB at the > > Bill> beginning of the line causes Emacs to auto indent while > > Bill> hitting TAB in the middle of the line inserts regular tab. > > Bill> However, in Ruby mode, hitting TAB in the middle of the line > > Bill> causes Emacs to auto indent and I cannot insert a regular > > Bill> TAB. Is there any way to make TAB behavior in Ruby the same > > Bill> as in C/C++? Thanks. > > > > Hmmm ... my C++ mode in emacs does autoindent nomatter where you are > > on the line, just like the Ruby mode. > > (setq c-tab-always-indent nil) ; either 'nil' (false) or 't' (true) > > > Jim