Skip to content

Emacs: rust-indent-method-chains indents beginning of line oddly #13

@steveklabnik

Description

@steveklabnik

Issue by ProjectMoon
Monday Jan 26, 2015 at 10:29 GMT

For earlier discussion, see rust-lang/rust#21650

This issue was labelled with: A-infrastructure in the Rust repository


Trying out rust-mode in emacs, and set rust-indent-method-chains because I like me some aligned dots.

It does what it advertises, but for some reason shoves the beginning of the line (and thus the lines underneath it) over one more tab.

I'm using spaces for tabs, configured to width 4.

What I expect:

let x = thing.do_it()
             .aligned()
             .more_alignment();

What I get:

    let x = thing.do_it()
                 .aligned()
                 .more_alignment();

I am using el-get to install rust-mode so it should be pulling off the latest master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions