From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Angeli Newsgroups: gmane.emacs.help Subject: Re: c-style comments in c++-mode Date: Sun, 11 Feb 2007 22:35:45 +0100 Organization: nil Message-ID: <45cf8c31$0$5718$9b4e6d93@newsspool3.arcor-online.net> References: Reply-To: angeli@caeruleus.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1171230162 32040 80.91.229.12 (11 Feb 2007 21:42:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Feb 2007 21:42:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 11 22:42:40 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 1HGMT0-0005zL-N6 for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Feb 2007 22:42:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGMT0-0000fl-94 for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Feb 2007 16:42:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-stu1.dfn.de!news.belwue.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:dJN9gRAmerhBqPM8eC5M3s7Fw18= Original-Lines: 11 Original-NNTP-Posting-Date: 11 Feb 2007 22:35:46 CET Original-NNTP-Posting-Host: f267ce2f.newsspool3.arcor-online.net Original-X-Trace: DXC=8Z<@13?o\ST\9P[:DUn00QMcF=Q^Z^V3X4Fo<]lROoRQgUcjd<3m<; RT^nA@YbIZd]B_Neh; dBi?[07j9fIh0W3RoX5b@fDmb8_n:GmS36DmUR Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:145503 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:41107 Archived-At: * 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 ... -- Ralf