Variable: org-src-mode-hook
org-src-mode-hook is a customizable variable defined in org-src.el.gz.
Value
(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
Documentation
Hook run after Org switched a source code snippet to its Emacs mode.
This hook will run:
- when editing a source code snippet with C-c ' (org-edit-special)
- when formatting a source code snippet for export with htmlize.
You may want to use this hook for example to turn off outline-minor-mode(var)/outline-minor-mode(fun)
or similar things which you want to have when editing a source code file,
but which mess up the display of a snippet in Org exported files.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defvar org-src-mode-hook nil
"Hook run after Org switched a source code snippet to its Emacs mode.
\\<org-mode-map>
This hook will run:
- when editing a source code snippet with `\\[org-edit-special]'
- when formatting a source code snippet for export with htmlize.
You may want to use this hook for example to turn off `outline-minor-mode'
or similar things which you want to have when editing a source code file,
but which mess up the display of a snippet in Org exported files.")