help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M-; and M-j and c-comment alignment


From: Damien Wyart
Subject: Re: M-; and M-j and c-comment alignment
Date: Tue, 26 Nov 2013 11:52:15 +0100
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50

* 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 via email to

[Prev in Thread] Current Thread [Next in Thread]