unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Making c-mode comment-start return // rather than /*
@ 2022-12-13 15:50 Heime
  2022-12-13 16:22 ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 2+ messages in thread
From: Heime @ 2022-12-13 15:50 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


How can I make comment-start return // rather than /* for c-mode ?





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Making c-mode comment-start return // rather than /*
  2022-12-13 15:50 Making c-mode comment-start return // rather than /* Heime
@ 2022-12-13 16:22 ` Stefan Monnier via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2022-12-13 16:22 UTC (permalink / raw)
  To: help-gnu-emacs

Heime [2022-12-13 15:50:57] wrote:
> How can I make comment-start return // rather than /* for c-mode ?

`comment-start` says what string should be inserted to comment
something out.  I suspect you want to use `commend-start-skip` instead,
which is a regular expression matching the beginning of a comment.


        Stefan




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-13 16:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-13 15:50 Making c-mode comment-start return // rather than /* Heime
2022-12-13 16:22 ` Stefan Monnier via Users list for the GNU Emacs text editor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).