org-ctrl-c-ctrl-c-hook

org-ctrl-c-ctrl-c-hook is a variable defined in `org.el'.
Its value is

(org-babel-hash-at-point org-babel-execute-safely-maybe)

  • This variable may be risky if used as a file-local variable.

Documentation:
Hook for functions attaching themselves to `C-c C-c'.

This can be used to add additional functionality to the C-c C-c
key which executes context-dependent commands. This hook is run
before any other test, while `org-ctrl-c-ctrl-c-final-hook' is
run after the last test.

Each function will be called with no arguments. The function
must check if the context is appropriate for it to act. If yes,
it should do its thing and then return a non-nil value. If the
context is wrong, just do nothing and return nil.