This package is a family of global minor modes that persist folds made by various existing (mostly) overlay-based folding systems, saving them to the disk and reapplying upon file open. Currently supported:
Rationale: there are billions of different types of folds in emacs, and very few of the packages implement persistence. It makes sense for fold persistence to be abstracted out into a separate package, both for economic reasons and for consistency of usage.
(use-package savefold :init (setq savefold-backends '(outline org origami hideshow)) (setq savefold-directory (locate-user-emacs-file "savefold")) ;; default :config (savefold-mode 1))
Notes:
org-startup-folded
to 'showeverything
is recommended for proper support.Configuration:
savefold-backends
(default: '(outline)
) is a list of backends to be enabled by savefold-mode
.savefold-directory
(default: (locate-user-emacs-file "savefold")
) is the directory where fold data is saved.Please feel free to contribute support for other folding systems. Suggestions and comments are also very welcome.
Development guidelines:
Before sending a PR, ensure (within reason):
eask test buttercup
eask compile
eask lint declare
eask lint package
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4