summaryrefslogtreecommitdiffstats
path: root/autoload/snippet/html/element.kak
blob: 68ccd8a61d0e472e173e649ec2965440dac332bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
hook global WinSetOption filetype=html %{

	hook -group snippet-html global InsertChar . %{
    	try %{
			evaluate-commands expand-snippet-nl \
				brk \
				<lt>br<space>/<gt><ret>
		} catch %{
    		evaluate-commands expand-snippet-nl \
				hr \
				<lt>hr<gt><ret>
		} catch %{}
	}



	hook -once -always window WinSetOption filetype=.* %{
    	remove-hooks global snippet-html
	}
}