From c881813d45bf239676ea0acf7aee399ebbcbf893 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 14 Apr 2024 14:42:24 +0200 Subject: Improve diffing for Common and Emacs Lisps --- user/settings/development/lisp.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'user/settings/development') diff --git a/user/settings/development/lisp.nix b/user/settings/development/lisp.nix index 9ad918d2..ba1bd048 100644 --- a/user/settings/development/lisp.nix +++ b/user/settings/development/lisp.nix @@ -9,4 +9,11 @@ asdf cl-launch ]; + + programs.git.attributes = [ + "*.lisp diff=common-lisp" + ]; + programs.git.extraConfig."diff.common-lisp" = { + xfuncname = "^\\((def\\S+\\s+\\S+)"; + }; } -- cgit 1.4.1