Variable: org-edit-src-turn-on-auto-save

org-edit-src-turn-on-auto-save is a customizable variable defined in org-src.el.gz.

Value

nil

Documentation

Non-nil means turn auto-save-mode on when editing a source block.

This will save the content of the source code editing buffer into a newly created file, not the base buffer for this source block.

If you want to regularly save the base buffer instead of the source code editing buffer, see org-edit-src-auto-save-idle-delay instead.

This variable was added, or its default value changed, in Org version
8.0.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defcustom org-edit-src-turn-on-auto-save nil
  "Non-nil means turn `auto-save-mode' on when editing a source block.
This will save the content of the source code editing buffer into
a newly created file, not the base buffer for this source block.

If you want to regularly save the base buffer instead of the source
code editing buffer, see `org-edit-src-auto-save-idle-delay' instead."
  :group 'org-edit-structure
  :version "24.4"
  :package-version '(Org . "8.0")
  :type 'boolean)