From a3dcb181ba8c1304ceda6b0d0b8ff39e48f18003 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 28 Apr 2024 13:33:12 +0200 Subject: git: fix diff header regex for emacs lisp files source: https://protesilaos.com/codelog/2021-01-26-git-diff-hunk-elisp-org/ --- user/settings/emacs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user/settings') diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index de0d73cc..229ba617 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -31,7 +31,7 @@ in "*.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 = { -- cgit 1.4.1