Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify indentation for esxml s-exps #13

Open
aidalgol opened this issue Apr 12, 2013 · 2 comments
Open

Specify indentation for esxml s-exps #13

aidalgol opened this issue Apr 12, 2013 · 2 comments

Comments

@aidalgol
Copy link
Contributor

It would be nice if esxml s-expressions were treated specially when indenting. To start with, I would like to have

(tag ()
     body)

automatically indented as

(tag ()
  body)

I'm not sure how do accomplish this, but so far it looks as if we'll need something like (put 'symbol 'lisp-indent-function INDENT-SPEC).

@alphapapa
Copy link

(declare (indent defun)) is usually the solution.

@wasamasa
Copy link
Collaborator

wasamasa commented Sep 7, 2017

Yeah, but that's for individual functions/macros. What you'd need here is an indentation function that recognizes the context and adjusts indentation to be more DWIMish. The proposed alternative of declaring indentation for each possible tag symbol isn't exactly actionable (just how many do you think exist for XML?) and will backfire if a user ever decides to call a function html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants