info-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New GNU ELPA package: indent-bars - Highlight indentation with bars


From: Sacha Chua
Subject: New GNU ELPA package: indent-bars - Highlight indentation with bars
Date: Mon, 23 Sep 2024 14:28:06 -0400

    Summary: Highlight indentation with bars
   Requires: emacs-27.1, compat-29.1
    Website: https://github.com/jdtsmith/indent-bars
   Keywords: convenience 
 Maintainer: J.D. Smith <jdtsmith+elpa@gmail.com>
     Author: J.D. Smith <jdtsmith+elpa@gmail.com>

indent-bars highlights indentation with configurable vertical
graphical bars, using stipples.  The color and appearance (weight,
pattern, position within the character, zigzag, etc.) are all
configurable.  Options include depth-varying colors and
highlighting the indentation depth of the current line.  Bars span
blank lines, by default.  indent-bars works in any mode using fixed
tab or space-based indentation.  In the terminal (or on request) it
uses vertical bar characters instead of stipple patterns.  Optional
treesitter support is also available; see indent-bars-ts.el.

For Developers:

To efficiently accommodate simultaneous alternative bar styling, we
do two things:

 1. Collect all the style related information (color, stipple
    pattern, etc.) into a single struct, operating on one such
    "current" style struct at a time.

 2. Provide convenience functions for duplicate "alternative"
    custom style variables the user can configure; see
    `indent-bars--style'.  These variables can "inherit" nil or
    omitted plist variables from their parent var.

Note the shorthand substitution for style related slots;
see file-local-variables at the end:

   ibs/  => indent-bars-style-



reply via email to

[Prev in Thread] Current Thread [Next in Thread]