From 4899585281beab51e5dff1d9ae4d3159244a8275 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 9 Jun 2021 21:37:56 +0200 Subject: Add org mode, close #706 --- autoload/polyglot/init.vim | 4 ++++ autoload/polyglot/sleuth.vim | 1 + 2 files changed, 5 insertions(+) (limited to 'autoload/polyglot') diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim index 781c9e57..7aa94939 100644 --- a/autoload/polyglot/init.vim +++ b/autoload/polyglot/init.vim @@ -169,6 +169,10 @@ let did_load_filetypes = 1 " DO NOT EDIT CODE BELOW, IT IS GENERATED WITH MAKEFILE +if !has_key(g:polyglot_is_disabled, 'org') + au BufNewFile,BufRead *.org setf org +endif + if !has_key(g:polyglot_is_disabled, 'mermaid') au BufNewFile,BufRead *.mermaid,*.mm,*.mmd setf mermaid endif diff --git a/autoload/polyglot/sleuth.vim b/autoload/polyglot/sleuth.vim index 095be910..0785dfbf 100644 --- a/autoload/polyglot/sleuth.vim +++ b/autoload/polyglot/sleuth.vim @@ -388,6 +388,7 @@ let s:globs = { \ 'openscad': '*.scad', \ 'opl': '*.[Oo][Pp][Ll]', \ 'ora': '*.ora', + \ 'org': '*.org', \ 'pamconf': '', \ 'pamenv': 'pam_env.conf,.pam_environment', \ 'papp': '*.papp,*.pxml,*.pxsl', -- cgit v1.2.3