all repos — nixfiles @ a3dcb181ba8c1304ceda6b0d0b8ff39e48f18003

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

git: fix diff header regex for emacs lisp files

source: https://protesilaos.com/codelog/2021-01-26-git-diff-hunk-elisp-org/
Alan Pearce alan@alanpearce.eu
Sun, 28 Apr 2024 13:33:12 +0200
commit

a3dcb181ba8c1304ceda6b0d0b8ff39e48f18003

parent

3e806115e09a3dcd72f4573e7b3baeedda1b36ef

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

jump to
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -31,7 +31,7 @@ programs.git.attributes = [     "*.el diff=elisp"
   ];
   programs.git.extraConfig."diff.elisp" = {
-    xfuncname = "^\\((((def\\S+)|use-package)\\s+\\S+)";
+    xfuncname = "^(((;;;+ )|\\(|([ \t]+\\(((cl-|el-patch-)?def(un|var|macro|method|custom)|gb/))).*)$";
   };
 
   programs.emacs = {