all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.