Mail Archives: djgpp/1994/04/22/08:25:45
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
- Raw text -