all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sanjeev Kumar.S" <sanjeevfiles@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: using c++ style comments for c mode
Date: Sun, 5 Oct 2008 03:28:47 -0700 (PDT)	[thread overview]
Message-ID: <286518.73909.qm@web57802.mail.re3.yahoo.com> (raw)
In-Reply-To: <48E7E959.2080702@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

I already had this in my .emacs file for c mode. So I added another hook 
to it to support c++ style comments for C, see at the end. But it still
doesn't work. any suggestions ?

(setq c-default-style "linux-c-mode")
(defun linux-c-mode ()
  "C mode with adjusted defaults for use with the Linux kernel."
  (interactive)
  (c-mode)
  (setq c-indent-level 8)
  (setq c-brace-imaginary-offset 0)
  (setq c-brace-offset -8)
  (setq c-argdecl-indent 8)
  (setq c-label-offset -8)
  (setq c-continued-statement-offset 8)
  (setq indent-tabs-mode nil)
  (setq tab-width 4)
->  (setq comment-start "// ")
->  (setq comment-end " "))

Regards,
Maindoor.




      

[-- Attachment #2: Type: text/html, Size: 916 bytes --]

  reply	other threads:[~2008-10-05 10:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-04 17:49 Problem with eshell Adolfo De Unanue
2008-10-04 22:08 ` Lennart Borgman (gmail)
2008-10-05 10:28   ` Sanjeev Kumar.S [this message]
2008-10-06  2:12   ` Adolfo De Unanue
2008-10-06  7:09     ` Using C++ style block comment in c-mode Maindoor
2008-10-06  9:48     ` Problem with eshell Peter Dyballa
2008-10-06 15:25       ` Adolfo De Unanue
2008-10-06 15:51         ` Lennart Borgman (gmail)
2008-10-06 17:27         ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=286518.73909.qm@web57802.mail.re3.yahoo.com \
    --to=sanjeevfiles@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.