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

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

Re: Line indents to middle when editing init.el: what the heck is happen


From: Alexis
Subject: Re: Line indents to middle when editing init.el: what the heck is happening?
Date: Sat, 30 Jan 2016 15:43:11 +1100
User-agent: mu4e 0.9.16; emacs 24.5.3


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

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