all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jeff Clough <jeff@chaosphere.com>
To: Help-gnu-emacs@gnu.org
Subject: Re: Comments always aligned at column 67 despite comment-column set otherwise
Date: Tue, 23 Mar 2010 17:31:45 -0400	[thread overview]
Message-ID: <m3pr2uiv26.fsf@logrus.localdomain> (raw)
In-Reply-To: <28000835.post@talk.nabble.com> (eric powell's message of "Tue, 23 Mar 2010 06:34:56 -0700 (PDT)")

eric_powell <epowell1@med.miami.edu> writes:

> All I would like to be able to do is set the comment column and then when I
> press M-;, for a comment to appear at that column.  I am trying to do this
> by setting the variable set-comment-column.  Seems simple enough, but no
> matter where I set this value, the comment always appears at column 67. 

The variable is actually named "comment-column".  You can test and/or
play around with it by doing a M-: and typing

(setq comment-column n)

Where n is the column number.  It should make M-; work as expected.
Once you find a number that works for you, you'll probably need to use
customize in order to make it permanent (it's buffer local).  You can
most easily do that by doing describe-variable on comment-column with
C-h v, then clicking the "customize" link near the bottom of the help.

> Furthermore, the M-; command is supposed to also realign existing comments,
> but in that case, it moves the comments to a completely different column
> (neither 67 nor what I set it to).

This also works with comment-column set as I noted above.

> This problem is absolutely driving me crazy.  Please someone help.
>
> I am mostly using emacs for c++ code, which I think is using cc-mode with
> the gnu style, but it would be nice if I could configure this behavior also
> for perl and bash code.  

It should.

Jeff




  reply	other threads:[~2010-03-23 21:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-23 13:34 Comments always aligned at column 67 despite comment-column set otherwise eric_powell
2010-03-23 21:31 ` Jeff Clough [this message]
2010-03-24 13:08   ` eric_powell
2010-03-24 13:25     ` eric_powell
2010-03-24 13:43       ` Jeff Clough
2010-03-24 13:25     ` Jeff Clough

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=m3pr2uiv26.fsf@logrus.localdomain \
    --to=jeff@chaosphere.com \
    --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.