← back to backlog: emacs-pkg

modusregel improve vc and mode

emacs-pkg-464
statusDonetypeTask
description

> Tree-Sitter Smart Major Mode-Mapping: prettifies major mode names, and detects -ts-mode variants (e.g., rust-ts-mode) and cleans them up beautifully (e.g., Rust).

Why not just use `mode-name`? `rust-ts-mode` sets it to "Rust", and it looks like many of the mappings in `modusregel-major-mode-alist` also mirror the respective modes' names. Plus some modes display extra info in `mode-name`, like `c-mode`/`c-ts-mode` et. al. showing the current comment style.

Also, in the vc segment, `when-let` is obsolete in favor of `when-let*`, and the segment seems to assume the current vc backend is git (not all backends have a 5 character prefix).

plan (0)

sprint: none
milestone: none

time logged (0)

no time logged yet

discussion (0)

no comments yet

attachments (0)

no attachments yet

activity (0)

nothing recorded yet

versions (0)

no versions yet