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

Indentation style closer to puppet-lint style #51

Closed
mcandre opened this issue Jul 23, 2014 · 1 comment
Closed

Indentation style closer to puppet-lint style #51

mcandre opened this issue Jul 23, 2014 · 1 comment

Comments

@mcandre
Copy link

mcandre commented Jul 23, 2014

The Puppet community prefers to line up arrows (=>) with other arrows in the same block, regardless of the number of characters in the keys before the arrows on each line. This style is encouraged by puppet-lint as well.

Example:

exec { 'apt-update':
  command => 'apt-get update',
  path    => '/bin:/usr/bin',
  timeout => 0
}

Could we please tweak the automatic indentation rules to make this happen naturally as an Emacs user works in puppet-mode?

@swsnr
Copy link
Contributor

swsnr commented Jul 24, 2014

Puppet Mode provides puppet-align at C-c C-a to align parameter arrows in a block.

We'll probably make this happen automatically, but not before the entire indentation engine is ported to SMIE, see #7. That is a considerable effort, and we have no ETA, but we will not make improvements or changes to the indentation engine before that.

Contributions and patches are welcome.

Closing.

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

No branches or pull requests

2 participants