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
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M user/settings/emacs.nix → user/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 = {