diff options
| author | Luke Hoersten <[email protected]> | 2025-10-02 14:37:20 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2025-10-02 14:37:20 -0500 |
| commit | 55d2fc1b3fe8e03fd6f5941017494534b374782a (patch) | |
| tree | 7bc301dc3af197dfc7acecf7120f7f9b805c55d4 /claude-code-hook-example.json | |
Initial commit.
Diffstat (limited to 'claude-code-hook-example.json')
| -rw-r--r-- | claude-code-hook-example.json | 16 |
1 files changed, 16 insertions, 0 deletions
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" + } + ] + } + ] + } +} |
