[comp.emacs] Defining C-j as 'scheme-indent-line

bwildasi@silver.bacs.indiana.edu (Ben Wildasin) (11/17/89)

I have a question about using Emacs in Scheme mode. I got several .emacs
files from people following my last question, and those are just what I
need, except for one thing. I would like to assign C-j to a command that
will automatically indent a line. (This is in the text editing window, not
in an inferior Scheme process.)

First, I tried:

(global-set-key "^J" 'scheme-indent-line)

without success.

Then I tried

(fset 'scheme-line-indentation "^M^I")
(global-set-key "^J" 'scheme-line-indentation)

but that didn't help either.

Does anyone out there know how I can do this?

As a side note, what is the difference between "^M^I", "^M,^I", and
"\C-m\C-i" in a global-set-key statement.

Thanks,
Ben Wildasin

**************************************************************************
Ben Wildasin     			  bwildasi@silver.bacs.indiana.edu
**************************************************************************