emacs lisp mode, mailing list?

Pascal Bourguignon pjb at informatimago.com
Fri Jun 22 07:58:42 UTC 2018



> On 22 Jun 2018, at 06:06, Andy Peterson <andy.arvid at 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__




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20180622/0ca6ca93/attachment.html>


More information about the pro mailing list