all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: autoformat (like clang-format) elisp code?
Date: Thu, 17 Mar 2022 13:14:51 +0100	[thread overview]
Message-ID: <87pmmkzsg4.fsf@telefonica.net> (raw)
In-Reply-To: 86k0csvqp0.fsf@csic.es

Juan José García-Ripoll <juanjose.garciaripoll@gmail.com> writes:

> 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?

aggressive-indent has a customization for comments:


aggressive-indent-comments-too is a variable defined in ‘aggressive-indent.el’.

Its value is nil

If non-nil, aggressively indent in comments as well.


Dunno how well it works.

As for aligment of variables and etc, I *think* that whatever formatting
M-x indent-region does aggressive-indent will do the same.




  reply	other threads:[~2022-03-17 12:14 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
2022-03-17 12:14     ` Óscar Fuentes [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmmkzsg4.fsf@telefonica.net \
    --to=ofv@wanadoo.es \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.