2017-09-08 13:44:55 +02:00
|
|
|
# https://www.mercurial-scm.org/
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
# Faces
|
|
|
|
# ‾‾‾‾‾
|
|
|
|
|
2017-11-03 08:34:41 +01:00
|
|
|
set-face MercurialCommitComment cyan
|
2017-09-08 13:44:55 +02:00
|
|
|
|
|
|
|
# Detection
|
|
|
|
# ‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
hook global BufCreate .*hg-editor-\w+\.txt$ %{
|
2017-11-03 08:34:41 +01:00
|
|
|
set-option buffer filetype hg-commit
|
2017-09-08 13:44:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
hook -group hg-commit-highlight global WinSetOption filetype=(?!hg-commit).* %{
|
2017-10-28 05:00:51 +02:00
|
|
|
remove-highlighter window/hg-commit-highlight
|
2017-09-08 13:44:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# Highlighters
|
|
|
|
# ‾‾‾‾‾‾‾‾‾‾‾‾
|
|
|
|
|
|
|
|
hook -group hg-commit-highlight global WinSetOption filetype=hg-commit %{
|
2017-10-28 05:00:51 +02:00
|
|
|
add-highlighter window group hg-commit-highlight
|
|
|
|
add-highlighter window/hg-commit-highlight regex '^HG:[^\n]*' 0:MercurialCommitComment
|
2017-09-08 13:44:55 +02:00
|
|
|
}
|