From 3b6cafd6927eb97d49e9cd9cdf68811e814aeff0 Mon Sep 17 00:00:00 2001 From: Martin Chaine Date: Sun, 9 Oct 2016 11:57:55 +0200 Subject: [PATCH] Renamed dlang to d --- rc/base/{dlang.kak => d.kak} | 62 ++++++++++++++++++------------------ rc/base/markdown.kak | 4 +-- 2 files changed, 33 insertions(+), 33 deletions(-) rename rc/base/{dlang.kak => d.kak} (63%) diff --git a/rc/base/dlang.kak b/rc/base/d.kak similarity index 63% rename from rc/base/dlang.kak rename to rc/base/d.kak index ed210621..a080a776 100644 --- a/rc/base/dlang.kak +++ b/rc/base/d.kak @@ -6,13 +6,13 @@ hook global BufCreate .*\.di? %{ set buffer mimetype "" - set buffer filetype dlang + set buffer filetype d } # Highlighters # ‾‾‾‾‾‾‾‾‾‾‾‾ -addhl -group / regions -default code dlang \ +addhl -group / regions -default code d \ string '"' (? } @@ -89,12 +89,12 @@ def -hidden _dlang-indent-on-new-line %~ = ~ -def -hidden _dlang-indent-on-opening-curly-brace %[ +def -hidden _d-indent-on-opening-curly-brace %[ # align indent with opening paren when { is entered on a new line after the closing paren try %[ exec -draft -itersel h)M \`\(.*\)\h*\n\h*\{\' s \`|.\' 1 ] ] -def -hidden _dlang-indent-on-closing-curly-brace %[ +def -hidden _d-indent-on-closing-curly-brace %[ # align to opening curly brace when alone on a line try %[ exec -itersel -draft ^\h+\}$hms\`|.\'1 ] ] @@ -102,22 +102,22 @@ def -hidden _dlang-indent-on-closing-curly-brace %[ # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ -hook -group dlang-highlight global WinSetOption filetype=dlang %{ addhl ref dlang } +hook -group d-highlight global WinSetOption filetype=d %{ addhl ref d } -hook global WinSetOption filetype=dlang %{ +hook global WinSetOption filetype=d %{ # cleanup trailing whitespaces when exiting insert mode - hook window InsertEnd .* -group dlang-hooks %{ try %{ exec -draft s^\h+$d } } - hook window InsertChar \n -group dlang-indent _dlang-indent-on-new-line - hook window InsertChar \{ -group dlang-indent _dlang-indent-on-opening-curly-brace - hook window InsertChar \} -group dlang-indent _dlang-indent-on-closing-curly-brace + hook window InsertEnd .* -group d-hooks %{ try %{ exec -draft s^\h+$d } } + hook window InsertChar \n -group d-indent _d-indent-on-new-line + hook window InsertChar \{ -group d-indent _d-indent-on-opening-curly-brace + hook window InsertChar \} -group d-indent _d-indent-on-closing-curly-brace set window formatcmd "dfmt" set window comment_selection_chars "/+:+/" } -hook -group dlang-highlight global WinSetOption filetype=(?!dlang).* %{ rmhl dlang } +hook -group d-highlight global WinSetOption filetype=(?!d).* %{ rmhl d } -hook global WinSetOption filetype=(?!dlang).* %{ - rmhooks window dlang-hooks - rmhooks window dlang-indent +hook global WinSetOption filetype=(?!d).* %{ + rmhooks window d-hooks + rmhooks window d-indent } diff --git a/rc/base/markdown.kak b/rc/base/markdown.kak index bdc1ba06..04a31639 100644 --- a/rc/base/markdown.kak +++ b/rc/base/markdown.kak @@ -23,8 +23,8 @@ addhl -group / regions -default content markdown \ cpp ```cpp ``` '' \ css ```css ``` '' \ cucumber ```cucumber ``` '' \ + d ```d ``` '' \ diff ```diff ``` '' \ - dlang ```dlang ``` '' \ dockerfile ```dockerfile ``` '' \ fish ```fish ``` '' \ gas ```gas ``` '' \ @@ -71,8 +71,8 @@ addhl -group /markdown/coffee ref coffee addhl -group /markdown/cpp ref cpp addhl -group /markdown/css ref css addhl -group /markdown/cucumber ref cucumber +addhl -group /markdown/d ref d addhl -group /markdown/diff ref diff -addhl -group /markdown/dlang ref dlang addhl -group /markdown/dockerfile ref dockerfile addhl -group /markdown/fish ref fish addhl -group /markdown/gas ref gas