aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/git/attributes1
-rw-r--r--home-dots/dot-gitconfig3
2 files changed, 4 insertions, 0 deletions
diff --git a/config/git/attributes b/config/git/attributes
index 761502e..1f901af 100644
--- a/config/git/attributes
+++ b/config/git/attributes
@@ -1,4 +1,5 @@
*.org diff=org
+*.ledger diff=ledger
*.lisp diff=lisp
*.el diff=lisp
*.scm diff=lisp
diff --git a/home-dots/dot-gitconfig b/home-dots/dot-gitconfig
index 8335e8e..11cff2d 100644
--- a/home-dots/dot-gitconfig
+++ b/home-dots/dot-gitconfig
@@ -14,6 +14,9 @@
xfuncname = "^(\\*+ +.*)$"
[diff "lisp"]
xfuncname = "^[ \t]*(((;+ )|\\((cl-|el-patch-|ert-)?def(un|var|macro|method|custom|ine|test)).*)$"
+[diff "ledger"]
+ xfuncname = "^([0-9]{4}-[0-9]+-[0-9]+ .*)$"
+
[difftool "image_diff"]
cmd = compare $REMOTE $LOCAL png:- | montage -font Liberation-Sans -tile 3x -geometry 400x -label "reference" $LOCAL -label "diff" - -label "current--%f" $REMOTE x:
[diff]