[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Filling Block Comment
From: |
August Karlstrom |
Subject: |
Re: Filling Block Comment |
Date: |
Sat, 18 Mar 2006 23:42:45 GMT |
User-agent: |
Mozilla Thunderbird 1.0.7 (X11/20051013) |
Andreas Röhler wrote:
August Karlstrom wrote:
With
(require 'newcomment)
(setq comment-start "/*")
(setq comment-end "*/")
Probably you don't need this explicit settings.
toggle c-mode
Well, the thing is I'm writing my own major mode for a C-like language.
with active region and transient-mark-mode
call comment-dwim. It's at M-;
Yes, I know. The function `comment-dwim' (and `dabbrev-expand') is one
of the most useful Emacs commands.
How do I make `fill-comment-paragraph' work with block
comments?
There is a var `comment-style' via customize, change that appropriatly.
I tried setting `comment-style' to `multi-line'
(set (make-local-variable 'comment-style) 'multi-line)
but that doesn't solve the problem, block-comments are still filled as
/* blah blah blah
/* blah blah blah */
rather than
/* blah blah blah
blah blah blah */
I'm just writing a func, which will allow you to switch between // and /* */.
Send a mail, if you need that.
Thanks, but that is not what I'm looking for.
August
--
I am the "ILOVEGNU" signature virus. Just copy me to your
signature. This email was infected under the terms of the GNU
General Public License.