From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.help Subject: Re: c-style comments in c++-mode Date: Mon, 12 Feb 2007 10:18:42 +0100 Message-ID: <87zm7jwx71.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171273290 6856 80.91.229.12 (12 Feb 2007 09:41:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2007 09:41:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 12 10:41:09 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HGXgK-0006Bs-1d for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Feb 2007 10:41:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGXgJ-0002jl-L8 for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Feb 2007 04:41:07 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-X-Trace: individual.net KKoPW3SGv9P2UWmHtjOJNwjQ+ZIisSW4oqO2Wu86D8y7moL2rL X-Orig-Path: news.individual.net!news X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:g6zIMQubApF3h9wMZ0rDflXlmXY= Original-Xref: shelby.stanford.edu gnu.emacs.help:145518 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41122 Archived-At: Stefan Monnier 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?