From 579112c4064a72e59b7b78f4bc2aceca102f4563 Mon Sep 17 00:00:00 2001 From: Greg Sexton Date: Sun, 26 Apr 2015 14:25:41 +0100 Subject: [PATCH] Make indent-parser the default --- origami.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/origami.el b/origami.el index 99e5437..412cf2d 100644 --- a/origami.el +++ b/origami.el @@ -377,11 +377,12 @@ was last built." children (or (-> (origami-fold-find-path-with-range (origami-get-cached-tree buffer) beg end) - -last-item - origami-fold-data) + -last-item + origami-fold-data) (origami-create-overlay beg end offset buffer))))))) - (-when-let (parser-gen (cdr (assoc (buffer-local-value 'major-mode buffer) - origami-parser-alist))) + (-when-let (parser-gen (or (cdr (assoc (buffer-local-value 'major-mode buffer) + origami-parser-alist)) + 'origami-indent-parser)) (funcall parser-gen create)))) (defun origami-get-fold-tree (buffer)