Added fix for Org 9.3 behavior

This commit is contained in:
Lucien Cartier-Tilet 2020-01-30 11:48:03 +01:00
parent a95145053c
commit f22441c660
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -2159,6 +2159,18 @@
(add-to-list 'org-structure-template-alist '("L" . "src emacs-lisp")) (add-to-list 'org-structure-template-alist '("L" . "src emacs-lisp"))
#+end_src #+end_src
Since Org 9.3, Org no longer attempts to restore the window configuration
in the frame to which the user returns after editing a source block with
=org-edit-src-code=. This means with the original value of
~org-src-window-setup~ (~reorganize-frame~), the current frame will be
split in two between the original org window and the source window, and
then only the org window will remain once we quit the source window. This
is not a desired behavior for me, so I chose to set this variable to
~other-window~ in order to keep my windows organization.
#+BEGIN_SRC emacs-lisp
(setq org-src-window-setup 'other-window)
#+END_SRC
**** Miscellaneous **** Miscellaneous
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h-42ccf90a-f507-4fab-ae42-3fd815a34ef0 :CUSTOM_ID: h-42ccf90a-f507-4fab-ae42-3fd815a34ef0