about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--nix-conf/home/includes/common.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nix-conf/home/includes/common.nix b/nix-conf/home/includes/common.nix
index 875dfc8..675a707 100644
--- a/nix-conf/home/includes/common.nix
+++ b/nix-conf/home/includes/common.nix
@@ -207,11 +207,17 @@ in
       update-master = "!git fetch origin master:master";
       update-main = "!git fetch origin main:main";
     };
+    attributes = [
+      "*.el diff=elisp"
+      "*.clj diff=clojure"
+    ];
     extraConfig = {
       core.editor = "vim";
       diff = {
         tool = "difftastic";
         colorMoved = "default";
+        elisp = { xfuncname = "^\\((((def\\S+)|use-package)\\s+\\S+)"; };
+        clojure = { xfuncname = "^\\((def\\S+\\s+\\S+)"; };
       };
       difftool = {
         prompt = false;