Use new access functions for wiki-local variables -- part 2

Ref #256
This commit is contained in:
EinfachToll
2016-12-22 19:12:03 +01:00
parent 6221861957
commit 61910cd93a
5 changed files with 13 additions and 20 deletions

View File

@ -639,7 +639,7 @@ nnoremap <silent><buffer> <Plug>VimwikiRemoveHeaderLevel :
" KEYBINDINGS }}}
" AUTOCOMMANDS {{{
if VimwikiGet('auto_export')
if vimwiki#vars#get_wikilocal('auto_export')
" Automatically generate HTML on page write.
augroup vimwiki
au BufWritePost <buffer>
@ -648,7 +648,7 @@ if VimwikiGet('auto_export')
augroup END
endif
if VimwikiGet('auto_toc')
if vimwiki#vars#get_wikilocal('auto_toc')
" Automatically update the TOC *before* the file is written
augroup vimwiki
au BufWritePre <buffer> call vimwiki#base#table_of_contents(0)