From: billtj@... (Bill Tj) Date: 2002-01-23T03:12:28+09:00 Subject: Re: Ruby Emacs-mode with Emacs 21.1.1 Hi Jim, Thanks for the reply. However, in function (define-key ruby-mode-map "\C-f" 'xxxx) what should I put as xxxx so that C-f is bound to "C-q, then TAB"? Or, what is the function xxxx that simply inserts a real tab? Regards, Bill =========================================================================== Jim Menard wrote in message news:... > 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