emacs lisp mode, mailing list?

Sky Hester skyjhester at gmail.com
Fri Jun 22 01:09:50 UTC 2018


Hi Mark,

Mark is right; paredit-mode binds paredit-reindent-defun to M-q, which
calls either lisp-fill-paragraph (from lisp-mode.el) or indents the form,
depending on whether you're in a comment or string. The string part is nice
if you like docstrings with a fixed maximum width.

-Sky


On Thu, Jun 21, 2018, 5:53 PM Mark Cox <markcox80 at gmail.com> wrote:

> G'day Mark,
>
> I don't know the command you are after but paredit provides the command
> paredit-reindent-defun which is bound to M-q when in paredit mode.
>
> You can invoke this command once your comment becomes too long to fit on
> one line. For example:
>
> (defun example ()
>   ;; This is a really long comment designed to show how the function
> paredit-reindent-defun works.*
>   (print "hello world"))
>
> (defun example ()
>   ;; This is a really long comment designed to show how the function
>   ;; paredit-reindent-defun works.*
>   (print "hello world"))
>
> Mark
>
> On Fri, Jun 22, 2018 at 8:50 AM, Mark H. David <mhd at yv.org> wrote:
>
>> OK, well I'm wondering if anyone remembers the keybinding M-RET (meta
>> return), within a semi-colon (;) comment, which used to wonderfully both
>> start a new line, but also continue the comment at the same indent level,
>> same number of leading semi-colons, with a space after.  Example:
>>
>> You're here, and your cursor is where the * is:
>>
>>    (defun foo ()
>>       ;; blah blah blah*
>>
>> and you type M-RET. Next thing that happens is the cursor is on the next
>> line where the * is, and the lines then look like this:
>>
>>    (defun foo ()
>>       ;; blah blah blah
>>       ;; *
>>
>> What happened to that functionality?  I thought it was there for years,
>> I'm pretty sure on the Lisp Machine and I think for years in regular Emacs
>> in Lisp mode.  It got ingrained in my fingers, and I often still try it,
>> but of course now all I get is: M-RET is undefined
>>
>> Thank you.
>>
>> ----- Original message -----
>> From: Pascal Bourguignon <pjb at informatimago.com>
>> To: Discussion list for Common Lisp professionals <pro at common-lisp.net>
>> Subject: Re: emacs lisp mode, mailing list?
>> Date: Thu, 21 Jun 2018 18:35:04 +0200
>>
>>
>>
>> On 21 Jun 2018, at 17:49, Mark H. David <mhd at yv.org> wrote:
>>
>> Is there a mailing list to ask questions and make suggestions and talk
>> about emacs lisp mode for pro Lispers? Would that be here perhaps?
>>
>>
>> Yes, there’s no other place.
>>
>> --
>> __Pascal J. Bourguignon__
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20180621/2fc8a660/attachment-0001.html>


More information about the pro mailing list