[Top][All Lists]

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

Re: Emacs Lisp code formatting

From: Juri Linkov
Subject: Re: Emacs Lisp code formatting
Date: Sat, 06 Nov 2021 21:01:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>> Doesn't Emacs have a pretty-printer for code?
> Emacs does now.  So instead of the `pp' output of
> ...
> you can have
> (lambda ()
>   (interactive)
>   (let ((beg nil))
>     (setq beg (point))
>     (while (and (looking-at "[        \n ]") (not (eobp)))
>       (forward-char))
>     (delete-region beg (point))))
> with `pp-emacs-lisp-code'.  And I'm sure there's a ton of stuff that can
> be tweaked -- this is the sort of stuff that'd open ended, because
> there's always something that can look just a bit prettier.

This is a nice feature, but I wonder why it's not used
by ‘C-u C-M-q’ (‘indent-pp-sexp’ with a prefix arg) in Lisp mode?

reply via email to

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