doomemacs/modules/editor/fold
Jeetaditya Chatterjee 4334eb285f
nit(fold): fix non idiomatic code
- remove final t in cond
- replace cond with if
- replace seq-filter with cl-remove-if-not
2022-05-22 21:26:08 +01:00
..
autoload nit(fold): fix non idiomatic code 2022-05-22 21:26:08 +01:00
config.el feat(fold): change ts-fold replacement face 2022-05-22 21:26:02 +01:00
packages.el bump: :editor fold ts-fold 2022-05-22 21:26:07 +01:00
README.org Fixed the keybind for fold/unfold all 2021-07-29 18:46:08 -05:00

editor/fold

Description

This module marries hideshow, vimish-fold and outline-minor-mode to bring you marker, indent and syntax-based code folding for as many languages as possible.

Module Flags

This module provides no flags.

Prerequisites

This module has no prerequisites.

Features

Emacs keybinds when 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

Troubleshooting

Sometimes an unfolded region does not 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.