Make indent-parser the default

This commit is contained in:
Greg Sexton 2015-04-26 14:25:41 +01:00
parent a8eb81e09c
commit 579112c406

View File

@ -380,8 +380,9 @@ was last built."
-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)