![](https://secure.gravatar.com/avatar/9e2504e0b74e5384af09ce8a660afac4.jpg?s=120&d=mm&r=g)
On 22 Jun 2018, at 06:06, Andy Peterson <andy.arvid@gmail.com> wrote:
Mark,
from key help: c-h k c-m-j:
C-M-j runs the command indent-new-comment-line (found in global-map), which is an alias for ‘comment-indent-new-line’ in ‘newcomment.el’.
It is bound to C-M-j, M-j.
(indent-new-comment-line &optional SOFT)
It could be argued that when you are in a comment, you should stay in a comment. Like in paredit, when you’re in a list and type RET, you go to a new-line, indented in the list. You have to type ) to get out of the list (or some other ‘up’ command. (or when you’re in a docstring, RET stays in the docstring, and you have to use paredit-forward-up (C-M-n) to get out of it. Then, similarly, you could bind RET to indent-new-comment-line, and use C-RET for usual newline-and-indent. Or extend paredit-forward-up to get you out of the comment (both #|comments|# and ;comments). -- __Pascal J. Bourguignon__