From: Asher Vilensky Subject: oemacs To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp) Date: Fri, 22 Apr 1994 07:40:29 -0400 (EDT) In oemacs, in the file that sets the mode for C++ (cplus-md.el) I have the line: (define-key c++-mode-map "\C-j" 'reindent-then-newline-and-indent) and thus added my own line to be able to do the above in one key stroke: (define-key c++-mode-map "\r" 'reindent-then-newline-and-indent) Now, when editing C code (and NOT C++) in emacs (or oemacs), C-j works but it is not defined in c-mode.el. 1. If it is not defined there, how is it recognized then? 2. Is there any way I can do the same as I did for my cplus-md.el to do automatic newline-and-indent upon hitting RETURN? Thanks in advance, Asher ------------------------- Asher Vilensky The University of Georgia vilensky AT cs DOT uga DOT edu