all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Damien Wyart <damien.wyart@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: M-; and M-j and c-comment alignment
Date: Tue, 26 Nov 2013 11:52:15 +0100	[thread overview]
Message-ID: <52947d5f$0$2242$426a34cc@news.free.fr> (raw)
In-Reply-To: mailman.7147.1385457886.10748.help-gnu-emacs@gnu.org

* Luca Ferrari <fluca1978@infinito.it> in gnu.emacs.help:
> [...]

> Is there a way to automatically open an aligned comment as the one
> I would like to have?

Does setting comment-end to "\n*/" for C/C++ mode answers the question ?

A quit test with:

(add-hook 'c-mode-common-hook
          '(lambda ()
           (setq comment-end "\n*/")))

did the trick for me.

-- 
DW


       reply	other threads:[~2013-11-26 10:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7147.1385457886.10748.help-gnu-emacs@gnu.org>
2013-11-26 10:52 ` Damien Wyart [this message]
2013-11-26 10:53   ` M-; and M-j and c-comment alignment Damien Wyart
2013-11-26 12:52     ` Luca Ferrari
     [not found]     ` <mailman.7160.1385470332.10748.help-gnu-emacs@gnu.org>
2013-11-26 13:07       ` Damien Wyart
2013-11-27  7:16         ` Luca Ferrari
     [not found]         ` <mailman.7230.1385536609.10748.help-gnu-emacs@gnu.org>
2013-11-27  7:31           ` Damien Wyart
2013-11-26 13:40   ` Stefan Monnier
     [not found]   ` <mailman.7164.1385473254.10748.help-gnu-emacs@gnu.org>
2013-11-26 14:43     ` Damien Wyart
2013-11-26  9:24 Luca Ferrari

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='52947d5f$0$2242$426a34cc@news.free.fr' \
    --to=damien.wyart@free.fr \
    --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.