fix: Use filetype instead of filename

Using filename caused autocmd called after modeline, caused it to
overwrite whatever setting is set through modeline
This commit is contained in:
Ahmad Ansori Palembani 2024-04-14 07:40:19 +07:00
parent 8a6051b017
commit 20400cf82f
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -90,7 +90,7 @@ augroup END
" ----- indent for corresponding extension
autocmd BufEnter *.py set ai sw=4 ts=4 sta et fo=croql
" in C files, tabs looks like 4 spaces, but it's actually tabs
autocmd BufEnter *.c set ai sw=4 ts=4 sta noet fo=croql
autocmd Filetype c set ai sw=4 ts=4 sta noet fo=croql
autocmd BufEnter *.md set ai sw=3 ts=3 sta et fo=croql
autocmd Filetype html* set ai sw=4 ts=4 sta et fo=croql
autocmd Filetype *css set ai sw=4 ts=4 sta et fo=croql