mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Replace direct calls to `hs-looking-at-block-start-p` and
`hs-find-block-beginning` with their corresponding function variables to
ensure compatibility with hideshow mode's configurable function
handling.
These function variables are set in [`treesit` in Emacs 31][1]. It broke
fold because `hs-block-start-regexp` is set to `nil` explicitly by
treesit overrides.
The default for `hs-looking-at-block-start-p-func` and
`hs-find-block-beginning-func` are same as what was being called before.
Ref:
[1]: 2e3b085d44
:editor fold
Description unfold
This module marries doom-package:hideshow, doom-package:vimish-fold, and outline-minor-mode
to bring you
marker, indent and syntax-based code folding for as many languages as possible.
Maintainers
Module flags
This module has no flags.
Packages
- doom-package:evil-vimish-fold
- doom-package:vimish-fold
-
if doom-module::tools tree-sitter
TODO Hacks
This module's hacks haven't been documented yet. Document them?
TODO Changelog
This module does not have a changelog yet.
Installation
Enable this module in your doom!
block.
This module has no external requirements.
TODO Usage
This module's usage documentation is incomplete. Complete it?
Emacs keybinds when doom-module::editor evil +everywhere is disabled:
Keybind | Description |
---|---|
C-c C-f C-f | Fold region |
C-c C-f C-u or C ` | Unfold region |
C-c C-f C-d | Delete folded region |
C-c C-f C-a C-f | Fold all regions |
C-c C-f C-a C-u | Unfold all regions |
C-c C-a C-d | Delete all folded regions |
TODO Configuration
This module has no configuration documentation yet. Write some?
Troubleshooting
- Sometimes, an unfolded region won't fold back with C-c C-f C-f. To bypass this bug you must delete the folded region (C-c C-f C-d) and then fold it (C-c C-f C-f) again.
Frequently asked questions
This module has no FAQs yet. Ask one?
TODO Appendix
This module has no appendix yet. Write one?