From: "Juan José García-Ripoll" <juanjose.garciaripoll@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: autoformat (like clang-format) elisp code?
Date: Thu, 17 Mar 2022 11:06:19 +0100 [thread overview]
Message-ID: <86k0csvqp0.fsf@csic.es> (raw)
In-Reply-To: 87tubwzzee.fsf@telefonica.net
Both electric and aggressive indent fail to address other issues, such
as line wrapping in comments and code, possible alignment of variables,
etc. Am I wrong?
Óscar Fuentes <ofv@wanadoo.es> writes:
> Juan José García-Ripoll <juanjose.garciaripoll@gmail.com> writes:
>
>> Hi,
>>
>> I know this is a very opinionated topic, but I have become used to
>> clang-format in my C++ projects as a tool that automatically formats
>> _all_ of my code, without me thinking much about it.
>>
>> Is there a way to enable Emacs do this for Emacs lisp files?
>
> Maybe aggressive-indent? I use it with great success for lisp-like
> languages. However, I also use paredit, which means that there are no
> unbalanced parens at any time.
>
> https://github.com/Malabarba/aggressive-indent-mode
>
>
>
--
Juan José García Ripoll
http://juanjose.garciaripoll.com
http://quinfog.hbar.es
next prev parent reply other threads:[~2022-03-17 10:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-17 9:15 autoformat (like clang-format) elisp code? Juan José García-Ripoll
2022-03-17 9:44 ` Óscar Fuentes
2022-03-17 10:06 ` Juan José García-Ripoll [this message]
2022-03-17 12:14 ` Óscar Fuentes
2022-03-17 22:19 ` Michael Heerdegen
2022-03-25 9:43 ` dal-blazej
2022-03-25 23:19 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86k0csvqp0.fsf@csic.es \
--to=juanjose.garciaripoll@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).