highlight-parentheses
- Description
- Highlight surrounding parentheses
- Latest
- highlight-parentheses-2.2.2.0.20240408.112634.tar (.sig), 2024-Apr-08, 30.0 KiB
- Maintainer
- Tassilo Horn <tsdh@gnu.org>
- Atom feed
- highlight-parentheses.xml
- Website
- https://sr.ht/~tsdh/highlight-parentheses.el/
- Browse ELPA's repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use package-install
or list-packages
.
Full description
highlight-parentheses: Highlights parentheses surrounding point in Emacs
highlight-parentheses.el
dynamically highlights the parentheses surrounding
point based on nesting-level using configurable lists of colors, background
colors, and other properties.
Screenshot
See how parens are fontified in different shades of red based on nesting level if they contain point.
Usage
Add the following to your .emacs
file:
elisp
(require 'highlight-parentheses)
Enable the mode using M-x highlight-parentheses-mode
or by adding it to a hook
like so:
elisp
(add-hook 'prog-mode-hook #'highlight-parentheses-mode)
There is also the global minor mode global-highlight-parentheses-mode
which
enables the mode in every buffer.
Furthermore, you can enable it also in the minibuffer using the following snippet:
elisp
(add-hook 'minibuffer-setup-hook #'highlight-parentheses-minibuffer-setup)
Installation
The package is available from both NonGNU ELPA, and
MELPA. With Emacs 28 (not yet released), NonGNU ELPA is
enabled by default, so you can just do M-x package-install RET
highlight-parentheses RET
.
If you are using use-package
, you can use the following recipe:
elisp
(use-package highlight-parentheses
:ensure t)
Questions & Patches
For asking questions, sending feedback, or patches, refer to my public inbox (mailinglist). Please mention the project you are referring to in the subject.
Bugs
Bugs and requests can be reported here.
License
highlight-parentheses.el is licensed under the GPLv3 (or later).
Old versions
highlight-parentheses-2.2.1.0.20240404.175627.tar.lz | 2024-Apr-04 | 5.20 KiB |
highlight-parentheses-2.2.1.0.20240330.204128.tar.lz | 2024-Mar-31 | 5.18 KiB |
highlight-parentheses-2.2.0.0.20240329.113838.tar.lz | 2024-Mar-29 | 5.16 KiB |
highlight-parentheses-2.1.1.0.20240328.211333.tar.lz | 2024-Mar-29 | 5.16 KiB |
highlight-parentheses-2.1.1.0.20220408.84538.tar.lz | 2022-Apr-08 | 27.1 KiB |
highlight-parentheses-2.1.0.0.20210821.213456.tar.lz | 2021-Aug-22 | 15.1 KiB |
highlight-parentheses-2.1.0.0.20210821.195739.tar.lz | 2021-Aug-21 | 15.1 KiB |
highlight-parentheses-2.0.4.0.20210816.111902.tar.lz | 2021-Aug-16 | 14.6 KiB |
highlight-parentheses-2.0.3.0.20210815.75851.tar.lz | 2021-Aug-15 | 14.5 KiB |