blob: cdd4812c9ee74a54361d36939c4e8774f02d4794 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
let s:cfg = getenv('XDG_CONFIG_HOME')
if s:cfg == v:null
let s:cfg = '~/.config/aerc/'
else
let s:cfg .= '/aerc/'
endif
let s:ipaths
\ = s:cfg . '*.conf,'
\ . s:cfg . 'stylesets/*,'
\ . '/usr/share/aerc/*.conf,'
\ . '/usr/share/aerc/stylesets/*'
let s:gpaths
\ = s:cfg . 'templates/*,'
\ . '/usr/share/aerc/templates/*'
execute 'autocmd BufRead,BufNewFile ' . s:ipaths . ' setfiletype ini'
execute 'autocmd BufRead,BufNewFile ' . s:gpaths . ' setfiletype gotmpl'
|