--- Glen Cordrey <[EMAIL PROTECTED]> wrote:
> What are the correct settings to cause javadoc comments to automatically
> wrap and
> continuation lines be prefaced with a *?
>
The c-lineup-C-comments is probably what you want.
(defun will-style-common-hook ()
"Will's programming style"
(c-add-style "will" will-style t)
;; Set the comments to start where they ought to.
(setq-default c-comment-continuation-stars "* ")
;; Wrap long lines of text automatically.
;; (auto-fill-mode 1)
;; Stop auto-fill from wrapping text onto comment lines.
(setq c-hanging-comment-starter-p nil)
(setq c-hanging-comment-ender-p nil)
;; M-; now indents to same level as TAB does.
(setq c-indent-comments-syntactically-p t)
;; (c-hanging-semi&comma-criteria . (my-semicolon-criteria))
(setq-default c-basic-offset 4)
(setq tabs-width 8 indent-tabs-mode t)
;; Delete large amounts of whitespace.
(c-toggle-hungry-state 1)
;; allow case insensitive search
(setq case-fold-search t)
(define-key c-mode-base-map "\C-m" 'newline-and-indent)
;; Line up * comments.
(c-set-offset 'c 'c-lineup-C-comments)
)
(add-hook 'c-mode-common-hook 'will-style-common-hook)
__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/