When editing org-src blocks, I sometimes go to other buffers while editing but whenever I close; it restores the window configuration before editing the block which is a minor annoyance when you need to find an existing buffer.
I checked out org-src.el and this is my hack.
(defun fn/org-src-inhibit-save-window-configuration ()
"Disable org-src from saving the window configuration"
;; HACK: This uses an internal variable, might be unstable
(setq org-src--saved-temp-window-config nil))
(add-hook 'org-src-mode-hook #'fn/org-src-inhibit-save-window-configuration)
Sadly, this is touches on a private variable so my question is there a correct way of doing this?
(with-current-buffer (marker-buffer org-src--beg-marker) ...). I agree there should be a built-in option for this.