summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2024-04-28 13:33:12 +0200
committerAlan Pearce2024-04-28 13:33:12 +0200
commita3dcb181ba8c1304ceda6b0d0b8ff39e48f18003 (patch)
tree40e4cb30eac41d5796624ca0b5a7f63453406f4d /user/settings
parent3e806115e09a3dcd72f4573e7b3baeedda1b36ef (diff)
downloadnixfiles-a3dcb181ba8c1304ceda6b0d0b8ff39e48f18003.tar.lz
nixfiles-a3dcb181ba8c1304ceda6b0d0b8ff39e48f18003.tar.zst
nixfiles-a3dcb181ba8c1304ceda6b0d0b8ff39e48f18003.zip
git: fix diff header regex for emacs lisp files
source: https://protesilaos.com/codelog/2021-01-26-git-diff-hunk-elisp-org/
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/emacs.nix2
1 files changed, 1 insertions, 1 deletions
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 = {