gregsexton / origami.el

A folding minor mode for Emacs
510 stars 41 forks source link

Adding marker based folding without affecting the default behavior #83

Open dathinaios opened 5 years ago

dathinaios commented 5 years ago

At the moment I can add marker folding using:

(add-hook 'prog-mode-hook
          (lambda () (setq-local origami-fold-style 'triple-braces)))

But this interferes with the default folding functionality. It would be great if there was a way to add the triple braces rule (or any other rule for that matter) on top of the default behaviour.