commit 74ae80a1a94884b0eba9d65cc92ef40f252c6015
parent 3fb5e4d1cf16c022c804e96aa640103c5b9674e2
Author: Vincent Demeester <vincent@sbr.pm>
Date: Sun, 3 May 2020 16:04:09 +0200
git.nix: add diff.org and diff.lisp
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/modules/profiles/git.nix b/modules/profiles/git.nix
@@ -53,13 +53,17 @@ in
st = "status";
w = "status -sb";
};
+ attributes = [
+ "*.org diff=org"
+ "*.lisp diff=lisp"
+ "*.el diff=lisp"
+ "*.hy diff=lisp"
+ "*.scm diff=lisp"
+ ];
extraConfig = {
core = {
editor = "${pkgs.emacs}/bin/emacsclient -t";
};
- forge = {
- remote = "upstream";
- };
color = {
status = "auto";
diff = "auto";
@@ -84,6 +88,15 @@ in
changed = "yellow";
untracked = "red";
};
+ "diff.org" = {
+ xfuncname = "^\\\\*+.*";
+ };
+ "diff.lisp" = {
+ xfuncname = "^\\\\([^ ]+ [^ ]+";
+ };
+ forge = {
+ remote = "upstream";
+ };
hub = {
protocol = true;
};