Kakoune: Load highlight for files with non standard extensions.

Created on 28 Oct 2020  路  1Comment  路  Source: mawww/kakoune

I have some files with .core extension. They are regular yaml files, however they must have different extension in file names. How can I make kakoune to load highlighting rules defined for yaml file each time I open file with .core extension?

Most helpful comment

Hello
You could try the following hook (to be declared in your kakrc)

hook global BufCreate '.*\.core' %{ set-option buffer filetype yaml }

>All comments

Hello
You could try the following hook (to be declared in your kakrc)

hook global BufCreate '.*\.core' %{ set-option buffer filetype yaml }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

hwmack picture hwmack  路  4Comments

radare picture radare  路  3Comments

alexherbo2 picture alexherbo2  路  3Comments

vbauerster picture vbauerster  路  3Comments

alexherbo2 picture alexherbo2  路  3Comments