From def778595de04fc5196a9318975640f8548d6d5c Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 13 Apr 2025 18:54:19 +0200 Subject: [PATCH] Play around with `outline-indent.el` See https://github.com/jamescherti/outline-indent.el. --- init.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index bd32bf5..1bc282b 100644 --- a/init.el +++ b/init.el @@ -584,6 +584,9 @@ (olivetti-mode -1))) :init (setq-default olivetti-body-width 0.618034)) +(use-package outline-indent + :init (setopt outline-indent-ellipsis " ▼ ")) + (use-package table :init (progn ;; Pandoc supports colons in grid tables to denote alignments, so let's have table.el @@ -609,7 +612,11 @@ (use-package yaml-mode :ensure t :config (progn - (add-hook 'yaml-mode-hook #'highlight-indentation-mode))) + (add-hook 'yaml-mode-hook #'highlight-indentation-mode) + + (add-hook 'yaml-mode-hook #'(lambda () + (with-demoted-errors "Cannot activate folding: %s" + (outline-indent-minor-mode)))))) (use-package yasnippet :commands (yas-minor-mode-on