2017-09-08 14:44:55 +03:00
|
|
|
# https://www.mercurial-scm.org/
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
# Faces
|
|
|
|
# ‾‾‾‾‾
|
|
|
|
|
2018-04-07 08:36:39 +03:00
|
|
|
set-face global MercurialCommitComment cyan
|
2017-09-08 14:44:55 +03:00
|
|
|
|
|
|
|
# Detection
|
|
|
|
# ‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
hook global BufCreate .*hg-editor-\w+\.txt$ %{
|
2017-11-03 10:34:41 +03:00
|
|
|
set-option buffer filetype hg-commit
|
2017-09-08 14:44:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
# Highlighters
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
hook -group hg-commit-highlight global WinSetOption filetype=hg-commit %{
|
2018-07-26 11:59:42 +03:00
|
|
|
add-highlighter window/ group hg-commit-highlight
|
2017-10-28 06:00:51 +03:00
|
|
|
add-highlighter window/hg-commit-highlight regex '^HG:[^\n]*' 0:MercurialCommitComment
|
2018-12-11 02:11:35 +03:00
|
|
|
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/hg-commit-highlight }
|
2017-09-08 14:44:55 +03:00
|
|
|
}
|