all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Ankur Jain" <ankurj@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: c-style comments in c++-mode
Date: Tue, 13 Feb 2007 10:11:03 -0500	[thread overview]
Message-ID: <jwvy7n214h4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <fb9f05100702130628w3c6866e9l7b8f356c4c817bce@mail.gmail.com> (Ankur Jain's message of "Tue\, 13 Feb 2007 19\:58\:30 +0530")

> Can we use both style of comments, somehow.

Of course.  You can always insert the other style by hand, for example.

> I mean, instead of replacing c++ mode comments completely, can we assign
> keyboard shortcut for inserting c mode style comments? Or may be some other
> better method to use both styles.

Sure.  Coding it is trivial.  The difficult aspect is to find a convenient
user interface for it.  The difficulty is that it should be more convenient
than doing the edit by hand, which is often pretty simple to do.

Maybe a good feature would be a toggling function that changes the style of
the comment-around-point.  That would be a bit less trivial to code.


        Stefan


> On 2/12/07, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> 
>> >>> 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 ...
>> 
>> Probably, but I use too many major modes to be bothered to learn each and
>> every one's new idiosyncratic way to configure it.  Especially since Emacs
>> provides perfectly good generic ways to do that.
>> 
>> 
>> Stefan
>> _______________________________________________
>> help-gnu-emacs mailing list
>> help-gnu-emacs@gnu.org
>> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>> 



> -- 
> Regards
> Ankur Jain

> http://ankurjain.org

  reply	other threads:[~2007-02-13 15:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.4334.1171189521.2155.help-gnu-emacs@gnu.org>
2007-02-11 10:36 ` c-style comments in c++-mode Hadron
2007-02-11 13:27   ` Dale Mellor
     [not found]   ` <mailman.4338.1171200489.2155.help-gnu-emacs@gnu.org>
2007-02-11 17:02     ` Stack
2007-02-11 23:15       ` Dale Mellor
2007-02-11 21:23 ` Stefan Monnier
2007-02-11 21:35   ` Ralf Angeli
2007-02-11 23:17     ` Dale Mellor
2007-02-12 16:49     ` Stefan Monnier
2007-02-13 14:28       ` Ankur Jain
2007-02-13 15:11         ` Stefan Monnier [this message]
2007-02-11 23:16   ` Dale Mellor
2007-02-12  9:18   ` Hadron
2007-02-11 10:24 Dale Mellor

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=jwvy7n214h4.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=ankurj@gmail.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.