all repos — nixfiles @ b4f03460b3795466031d8fb6af4c58a05b49af9c

System and user configuration, managed by nix and home-manager

simplify git's elisp function name regex
Alan Pearce alan@alanpearce.eu
Mon, 24 Mar 2025 00:34:28 +0100
commit

b4f03460b3795466031d8fb6af4c58a05b49af9c

parent

6ad43ebe21d27c0eb8b8a971c7fbcece166bd3b5

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M user/settings/emacs.nixuser/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 {