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

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

Re: comments in cc mode


From: John A Pershing Jr
Subject: Re: comments in cc mode
Date: Wed, 07 Oct 2009 15:04:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt)

Michael <mmassmann@econ.vu.nl> writes:

> I was wondering whether there is a simple way of changing the various
> ways comments are placed in cc mode to one single default: always place
> a double forward slash in column, say, 100 and then the comment
> thereafter?

I don't know what "cc mode" is.  However, for C-like languages, try
putting the following into your ~/.emacs file:

    (add-hook 'c-mode-common-hook
              '(lambda ()
                 (setq comment-column 100)
                 ))

(You *really* want your comments way over there in column 100???)

  -jp


reply via email to

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