Function: org-src-mode-configure-edit-buffer

org-src-mode-configure-edit-buffer is a byte-compiled function defined in org-src.el.gz.

Signature

(org-src-mode-configure-edit-buffer)

Documentation

Configure the src edit buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defun org-src-mode-configure-edit-buffer ()
  "Configure the src edit buffer."
  (when (bound-and-true-p org-src--from-org-mode)
    (add-hook 'kill-buffer-hook #'org-src--remove-overlay nil 'local)
    (if (bound-and-true-p org-src--allow-write-back)
	(progn
	  (setq buffer-offer-save t)
	  (setq write-contents-functions '(org-edit-src-save)))
      (setq buffer-read-only t))))