blob: 2547e5aa6ad8f7574d95d04ac8408d29a338fa09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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=\"${XDG_CONFIG_HOME:-$HOME/.config}/emacs/claude-code-context.json\"; [ -f \"$CONTEXT_FILE\" ] || CONTEXT_FILE=\"$HOME/.emacs.d/claude-code-context.json\"; if [ -f \"$CONTEXT_FILE\" ]; then echo \"\\n---\\n## Emacs Context\\n\"; cat \"$CONTEXT_FILE\"; echo \"\\n---\"; fi"
}
]
}
]
}
}
|