simplify git's elisp function name regex
Alan Pearce alan@alanpearce.eu
Mon, 24 Mar 2025 00:34:28 +0100
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -24,7 +24,7 @@ programs.git.attributes = [ "*.el diff=elisp" ]; programs.git.extraConfig."diff.elisp" = { - xfuncname = "^(((;;;+ )|\\(|([ \t]+\\(((cl-|el-patch-)?def(un|var|macro|method|custom)|gb/))).*)$"; + xfuncname = "^\\([^[:space:]]+[[:space:]]+([^()[:space:]]+)"; }; services.emacs = lib.mkIf stdenv.isLinux {