From 2c19c2d84c58a3fb2807ac274d3b05f8cb568e96 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Thu, 9 Aug 2018 12:27:40 +0300 Subject: [PATCH] rc: Use builtin faces --- rc/base/d.kak | 14 +++++++------- rc/base/git.kak | 8 ++++---- rc/base/mercurial.kak | 7 +------ rc/base/perl.kak | 2 +- rc/core/c-family.kak | 2 +- rc/core/man.kak | 6 +++--- rc/extra/git-tools.kak | 11 ++++------- rc/extra/latex.kak | 2 +- 8 files changed, 22 insertions(+), 30 deletions(-) diff --git a/rc/base/d.kak b/rc/base/d.kak index e866865f..f0f08248 100644 --- a/rc/base/d.kak +++ b/rc/base/d.kak @@ -14,15 +14,15 @@ hook global BufCreate .*\.di? %{ add-highlighter shared/d regions add-highlighter shared/d/code default-region group add-highlighter shared/d/string region %{(?]: git wrapping helper All the optional arguments are forwarded to the git utility @@ -62,7 +59,7 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide- run_git_blame() { ( printf %s "evaluate-commands -client '$kak_client' %{ - try %{ add-highlighter window/git-blame flag-lines GitBlame git_blame_flags } + try %{ add-highlighter window/git-blame flag-lines Information git_blame_flags } set-option buffer=$kak_bufname git_blame_flags '$kak_timestamp' }" | kak -p ${kak_session} git blame "$@" --incremental ${kak_buffile} | awk ' @@ -184,7 +181,7 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide- }" ;; show-diff) - echo 'try %{ add-highlighter window/git-diff flag-lines GitDiffFlags git_diff_flags }' + echo 'try %{ add-highlighter window/git-diff flag-lines Default git_diff_flags }' update_diff ;; hide-diff) diff --git a/rc/extra/latex.kak b/rc/extra/latex.kak index e93b2a73..acb5c1fc 100644 --- a/rc/extra/latex.kak +++ b/rc/extra/latex.kak @@ -20,7 +20,7 @@ add-highlighter shared/latex/content/ regex '\\(?!_)\w+\b' 0:keyword # Options passed to scopes, between brackets add-highlighter shared/latex/content/ regex '\\(?!_)\w+\b\[([^\]]+)\]' 1:value # Content between dollar signs/pairs -add-highlighter shared/latex/content/ regex '(\$(\\\$|[^$])+\$)|(\$\$(\\\$|[^$])+\$\$)' 0:magenta +add-highlighter shared/latex/content/ regex '(\$(\\\$|[^$])+\$)|(\$\$(\\\$|[^$])+\$\$)' 0:meta # Emphasized text add-highlighter shared/latex/content/ regex '\\(emph|textit)\{([^}]+)\}' 2:default+i # Bold text