Skip to content

Hide #[test] functions by default in emacs #3531

Description

@brson

It would be nice if emacs did 'folding' to hide the bodies of test functions. Tests are very convenient to write inline, and it's great to put tests as close to the functions they test as possible, but having tests littered everywhere makes reading the code later not as fun.

Activity

  1. mpenet commented on Sep 22, 2012

    @mpenet
    Contributor

    I am not sure it is a good idea to have this part of the mode itself, it is a very uncommon/specific feature for a language mode imho, but you can probably achieve this using folding-mode or something similar (I am told it is really easy to setup).

  2. brson commented on Sep 25, 2012

    @brson
    ContributorAuthor

    Agreed it doesn't belong in rust-mode, and it sounds like folding-mode can do this trivially, so there's nothing to do here. Thanks, @mpenet.

  3. added a commit that references this issue on May 4, 2024
  4. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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