hi,
On Wed, 11 Sep 2002, Daniel Hegyi wrote:
>
> I know. However, is there a way of getting this functionality when starting
> a new line (i.e., hitting ENTER)? I'd like to get an asterisk then as well.
>
> >
> >I discovered by accident that if you turn on auto-fill-mode and begin
> >typing within a javadoc comment, the line will automatically wrap, add
> >an asterisk, and indent to the appropriate place within the comment.
> >
> >- david
> >
> > >
> > >When I'm typing a javadoc comment I'd like to have every new line
> > >automatically start with an asterisk. How can I do this?
> > >
if have the following lines in somewhere in my java-mode-hook
;; borrowed from Kai Grossjohann
;; return in comments inserts comments sign
(define-key c-mode-base-map
[(return)] '(lambda ()
(interactive)
(c-indent-command)
(c-context-line-break)
))
heinz-dieter conradi