all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexis <flexibeast@gmail.com>
To: Tom Browder <tom.browder@gmail.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Line indents to middle when editing init.el: what the heck is happening?
Date: Sat, 30 Jan 2016 15:43:11 +1100	[thread overview]
Message-ID: <87vb6bekyo.fsf@gmail.com> (raw)
In-Reply-To: <CAFMGiz_8sY7JZjU3z3isugwxtTagHHrM8kHLw9NcDp2XO92J3g@mail.gmail.com>


Tom Browder <tom.browder@gmail.com> writes:

> Ah, I am using a single semicolon!  I have never heard of that 
> behavior before, and I don't remember seeing that in XEmacs (but 
> I started with an extensive init.el from one of the daddy 
> rabbits which may be the reason).

It's part of the GNU Emacs coding conventions / recommendations; 
cf.  this section of GNU Emacs Lisp Reference Manual:

https://www.gnu.org/software/emacs/manual/html_node/elisp/Comment-Tips.html#Comment-Tips

> I'll see if a double-semicolon changes the behavior. BTW, do you 
> know how to change that behavior?

Well, in terms of which column a single-semicolon comment will be 
aligned to, you can set the value of the variable 
`comment-column`.

Afaik, to change how single-semicolon comments behave overall, 
you'd need to modify the variable `comment-indent-function` to 
point to a function that behaves the way you want (e.g. a modified 
version of the function `comment-indent-default`).

> Thanks, Alexis.

You're welcome. :-)


Alexis.



  reply	other threads:[~2016-01-30  4:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-26 12:36 Line indents to middle when editing init.el: what the heck is happening? Tom Browder
2016-01-27  2:05 ` Alexis
2016-01-27  2:45   ` Tom Browder
2016-01-30  4:43     ` Alexis [this message]
2016-01-31 21:12       ` Tom Browder

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=87vb6bekyo.fsf@gmail.com \
    --to=flexibeast@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tom.browder@gmail.com \
    /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.