From 55d2fc1b3fe8e03fd6f5941017494534b374782a Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Thu, 2 Oct 2025 14:37:20 -0500 Subject: Initial commit. --- claude-code-hook-example.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 claude-code-hook-example.json (limited to 'claude-code-hook-example.json') diff --git a/claude-code-hook-example.json b/claude-code-hook-example.json new file mode 100644 index 0000000..3e4c1a0 --- /dev/null +++ b/claude-code-hook-example.json @@ -0,0 +1,16 @@ +{ + "description": "Example Claude Code hook configuration for Emacs context integration", + "note": "Add the 'hooks' section below to your ~/.claude/settings.json file", + "hooks": { + "UserPromptSubmit": [ + { + "hooks": [ + { + "type": "command", + "command": "CONTEXT_FILE=\"$HOME/.emacs.d/claude-context.txt\"; if [ -f \"$CONTEXT_FILE\" ]; then echo \"\\n---\\n## Emacs Context\\n\"; cat \"$CONTEXT_FILE\"; echo \"\\n---\"; fi" + } + ] + } + ] + } +} -- cgit v1.2.3