From: Jim Menard Date: 2002-01-23T00:32:05+09:00 Subject: Re: Ruby Emacs-mode with Emacs 21.1.1 billtj@glue.umd.edu (Bill Tj) writes: > 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. Here's my Ruby mode hook. Note the calls to "define-key": by using the ruby mode key map, you affect only that mode. (setq ruby-mode-hook '(lambda () (inf-ruby-keys) (setq ruby-indent-level 4) (define-key ruby-mode-map "\r" 'ruby-reindent-then-newline-and-indent) (define-key ruby-mode-map "\C-c\C-c" 'comment-region) (if window-system (font-lock-mode 1)) ) ) Jim -- Jim Menard, jimm@io.com, http://www.io.com/~jimm/ "Linux was released on August 25th, 1991. Therefore it is a Virgo, not a Cancer." -- Kevin Lyda