[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/indent-bars 81e70fd79c 1/4: mention list-opening config
From: |
ELPA Syncer |
Subject: |
[elpa] externals/indent-bars 81e70fd79c 1/4: mention list-opening config options for no-descend-lists |
Date: |
Thu, 26 Sep 2024 18:58:38 -0400 (EDT) |
branch: externals/indent-bars
commit 81e70fd79c42a0c6e04d87f8752bcc36b1d873fc
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
mention list-opening config options for no-descend-lists
---
NEWS.org | 1 +
README.md | 6 +++---
indent-bars.el | 4 ++--
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/NEWS.org b/NEWS.org
index d558258338..07ea227c86 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -4,6 +4,7 @@
* Development
+- Allow configuring `indent-bars-no-descend-lists` with a list of list-open
chars to consider (e.g. in c-modes, where {})
- Ensure ~indent-bars--ts-mode~ is fully removed when indent-bars is disabled.
- Protect against frame unavailability in daemon server mode.
- Handle empty stipple ~:pattern~ strings.
diff --git a/README.md b/README.md
index 041cfb6f37..f864a659cd 100644
--- a/README.md
+++ b/README.md
@@ -122,7 +122,7 @@ Please [open an issue](../../issues) with any
updates/corrections to this list.
See some [examples](examples.md) with relevant settings.
-The main customization variables are categorized below. See the documentation
of each variable for more details.
+The main customization variables are categorized below. See the documentation
of each variable for more details on the valid values.
## Bar colors
@@ -155,8 +155,8 @@ Configuration variables for bar position and line locations
(including on blank
- `indent-bars-starting-column`: column to use for the first bar (default: one
indent spacing). Can be set in special modes which start at an unusual fixed
offset, or set to 0 to get "column 0" bars (which are possibly superfluous
given the left buffer edge).
- `indent-bars-spacing-override`: Normally the number of spaces for
indentation is automatically discovered from the mode and other variables. If
that doesn't work for any reason, it can be explicitly overridden using this
variable.
- `indent-bars-display-on-blank-lines`: Whether to display bars on blank lines
contiguous with lines already showing bars.
-- `indent-bars-no-descend-string`: Whether to inhibit increasing bar depth
inside of strings.
-- `indent-bars-no-descend-list`: Whether to inhibit increasing bar depth
inside of lists.
+- `indent-bars-no-descend-string`: Whether to inhibit increasing bar depth
inside of strings.
+- `indent-bars-no-descend-list`: Whether to inhibit increasing bar depth
inside of lists. Note that this can optionally be configured with a list of
list-opening chars (e.g. `'(?\( ?\[)`?) to select only certain list context
(useful for c-based modes, where `{}` braces are a list syntax).
## Character-based bars and terminal
diff --git a/indent-bars.el b/indent-bars.el
index 980233f6aa..aa2f86259a 100644
--- a/indent-bars.el
+++ b/indent-bars.el
@@ -420,8 +420,8 @@ If non-nil, displayed bars will go no deeper than the indent
level at the starting line of the innermost containing list. If
t, any list recognized by the active syntax table will be used to
identify enclosing list contexts. If set to a list of
-characters, only opening characters on this list will activate
-bar suppression."
+characters, only list-opening characters on this list will
+activate bar suppression."
:local t
:type '(choice
(const :tag "Disabled" nil)