unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* C style comments
@ 2004-02-18 17:24 Peter Collingbourne
  2004-02-18 18:52 ` Peter Collingbourne
  2004-02-18 19:11 ` Alan Mackenzie
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Collingbourne @ 2004-02-18 17:24 UTC (permalink / raw)


Hello

I am new to Emacs and I am trying to get C style comments in Java. I.e.
/*
 *
 */

The below .emacs file works when the comment is not indented, but when there
is an indent before the code I am commenting I get something like this
        /*
 * 
 */
i.e. there is no indent on the lines after the first one. I use M-; to open
a comment and M-C-j to go the next line.

Here's my .emacs

(defun my-indent-setup ()
  (setq c-basic-offset 8)
  (setq indent-tabs-mode t)
  (setq comment-multi-line t)
  (setq comment-start "/*")
  (setq fill-prefix   " * ")
  (setq comment-end   " */")
)

(add-hook 'java-mode-hook 'my-indent-setup)

-- 
Peter

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-02-18 19:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-18 17:24 C style comments Peter Collingbourne
2004-02-18 18:52 ` Peter Collingbourne
2004-02-18 19:11 ` Alan Mackenzie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).