From 8eb8bcacdf761e0ffe6e24a62f96e6e43a8fbfe1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 20 Mar 2023 23:00:55 -0700 Subject: [PATCH] [git] Add custom hunk-headers for Emacs Lisp files --- git/.config/git/attributes | 1 + git/.config/git/config | 2 ++ 2 files changed, 3 insertions(+) diff --git a/git/.config/git/attributes b/git/.config/git/attributes index 5c9acb3..cb7f682 100644 --- a/git/.config/git/attributes +++ b/git/.config/git/attributes @@ -1 +1,2 @@ *.org diff=org +*.el diff=lisp diff --git a/git/.config/git/config b/git/.config/git/config index dc4736f..646c2e0 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -3,3 +3,5 @@ email = tom@ryuslash.org [diff "org"] xfuncname = "^\\*+ *(.*)" +[diff "lisp"] + xfuncname = "^[[:space:]]*?\\(def\\w+? ((\\w|-|'|:|=|<|>)+)"