Commit 74ae80a1a948

Vincent Demeester <vincent@sbr.pm>
2020-05-03 16:04:09
git.nix: add diff.org and diff.lisp
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 3fb5e4d
Changed files (1)
modules
profiles
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;
             };