Skip to content
Snippets Groups Projects
Commit c2c05a9b authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

Add filetype to Pijul-changemsg

parent 28d5e83b
Branches
No related tags found
No related merge requests found
...@@ -444,10 +444,18 @@ set nobackup ...@@ -444,10 +444,18 @@ set nobackup
filetype plugin indent on filetype plugin indent on
if has('autocmd') if has('autocmd')
" Search for 'message =' AND search if '# Hunks' exists in file
" set filetype to "pijul" and change colorscheme
autocmd BufNewFile,BufRead /tmp/.tmp*
\ if search('message =', 'nw') && search ('# Hunks', 'nw') |
\ setlocal filetype=pijul | endif
" Further matches on now set Filetype also possible
" autocmd FileType pijul colorscheme desert
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4
autocmd FileType json syntax match Comment +\/\/.\+$+ autocmd FileType json syntax match Comment +\/\/.\+$+
endif endif
"au BufNewFile,BufRead *.py set tabstop=4 "au BufNewFile,BufRead *.py set tabstop=4
"\ softtabstop=4 "\ softtabstop=4
"\ shiftwidth=4 "\ shiftwidth=4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment