Path: utzoo!utgpu!watmath!iuvax!silver!bwildasi From: bwildasi@silver.bacs.indiana.edu (Ben Wildasin) Newsgroups: comp.emacs Subject: Defining C-j as 'scheme-indent-line Message-ID: <29834@iuvax.cs.indiana.edu> Date: 16 Nov 89 22:26:31 GMT Sender: root@iuvax.cs.indiana.edu Reply-To: bwildasi@silver.bacs.indiana.edu (Ben Wildasin) Distribution: na Organization: Indiana University, Bloomington Lines: 31 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 **************************************************************************