From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dale Mellor Newsgroups: gmane.emacs.help Subject: Re: c-style comments in c++-mode Date: Sun, 11 Feb 2007 23:17:30 +0000 Organization: DM Bespoke Computer Solutions Ltd Message-ID: <1171235850.7320.5.camel@localhost.localdomain> References: <45cf8c31$0$5718$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1171235908 16539 80.91.229.12 (11 Feb 2007 23:18:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Feb 2007 23:18:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: angeli@caeruleus.net Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 12 00:18:20 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 1HGNxb-0002Oc-SQ for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Feb 2007 00:18:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGNxb-0007vq-CS for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Feb 2007 18:18:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGNxP-0007v0-24 for help-gnu-emacs@gnu.org; Sun, 11 Feb 2007 18:18:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGNxN-0007ul-GT for help-gnu-emacs@gnu.org; Sun, 11 Feb 2007 18:18:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGNxN-0007ui-9S for help-gnu-emacs@gnu.org; Sun, 11 Feb 2007 18:18:05 -0500 Original-Received: from p15122568.pureserver.info ([217.160.177.192] helo=gateshead-online.co.uk) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HGNxN-0001ze-7S for help-gnu-emacs@gnu.org; Sun, 11 Feb 2007 18:18:05 -0500 Original-Received: from [217.44.32.35] (helo=l2.a) by gateshead-online.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1HGNxL-0003U8-K7; Sun, 11 Feb 2007 23:18:03 +0000 In-Reply-To: <45cf8c31$0$5718$9b4e6d93@newsspool3.arcor-online.net> X-Mailer: Evolution 2.6.0 X-detected-kernel: Linux 2.4-2.6 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:41112 Archived-At: On Sun, 2007-02-11 at 22:35 +0100, Ralf Angeli wrote: > * Stefan Monnier (2007-02-11) 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 " */"))) > > Or with a CC Mode style ... I don't understand, what do you mean?