all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Hitting <Ret> at beginning of comment line of .el files
@ 2020-10-08 20:25 Christopher Dimech
  2020-10-08 21:04 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Dimech @ 2020-10-08 20:25 UTC (permalink / raw)
  To: Help Gnu Emacs

When I hit <Ret> at beginning of a comment line in an elisp file
I get the line shifted by five tabs. Why does this happen. I am
thinking of disabling this thing. How can I disable such behaviour.

Regards
C*






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Hitting <Ret> at beginning of comment line of .el files
  2020-10-08 20:25 Hitting <Ret> at beginning of comment line of .el files Christopher Dimech
@ 2020-10-08 21:04 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 2+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-10-08 21:04 UTC (permalink / raw)
  To: help-gnu-emacs

Christopher Dimech wrote:

> When I hit <Ret> at beginning of a comment line in
> an elisp file I get the line shifted by five tabs.
> Why does this happen. I am thinking of disabling
> this thing. How can I disable such behaviour.

Sounds like an auto-indentation thing.

Use _two_ semi-colons (;;) for all-comment lines, e.g.

;; now the interesting stuff begins...

but

(+ 1 3 3 7) ; addition is addictive

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-08 21:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-08 20:25 Hitting <Ret> at beginning of comment line of .el files Christopher Dimech
2020-10-08 21:04 ` Emanuel Berg via Users list for the GNU Emacs text editor

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.