Skip to content

rust-mode: default to conventional indentation variable tab-width value #6222

Closed
@mcandre

Description

@mcandre

To configure indentation width in rust-mode, the Emacs user modifies rust-indent-unit, as in (setq rust-indent-unit 4). This works, but it's nicer, more idiomatic, and more compatible with other Emacs modes to base the rust-indent-unit variable off of tab-width, and use a rust-mode-hook to customize tab-width rather than set rust-indent-unit globally.

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