Add hooks to doc-view-mode and rlc.