help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c-style comments in c++-mode


From: Hadron
Subject: Re: c-style comments in c++-mode
Date: Mon, 12 Feb 2007 10:18:42 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> What's the quickest way to tell c++-mode to insert c-style comments?
>
> (add-hook 'c++-mode-hook
>           (lambda () (setq comment-start "/* ") (setq comment-end " */")))
>
>
> -- Stefan

Does my line

  (c-set-style "K&R")        ; offset customizations not in my-c-style

accomplish the same thing?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]