Add go and php to parsers alist

This commit is contained in:
Greg Sexton 2015-04-25 15:20:06 +01:00
parent 27b28c8e16
commit e81d69ad8e
2 changed files with 4 additions and 0 deletions

View File

@ -150,6 +150,8 @@ Probably not. Currently out of the box support is provided for:
* Javascript
* Perl
* elisp
* Go
* PHP
It should be trivial to add support for any language that uses braces
to delimit blocks. Just add to `origami-parser-alist` something like:

View File

@ -42,6 +42,8 @@
(js-mode . origami-c-style-parser)
(js2-mode . origami-c-style-parser)
(js3-mode . origami-c-style-parser)
(go-mode . origami-c-style-parser)
(php-mode . origami-c-style-parser)
(emacs-lisp-mode . origami-elisp-parser)
(lisp-interaction-mode . origami-elisp-parser)
(clojure-mode . origami-clj-parser))