From 454eef591a58a040a8da8027231f27b6068a75f0 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 9 Nov 2020 02:25:59 -0500 Subject: [PATCH] Created PR to backport emacs-lisp org-babel evaluation to manage the UI --- modules/lang/org/config.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 289ea146c..9661b4561 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -231,7 +231,16 @@ Is relative to `org-directory', unless it is absolute. Is used in Doom's default (add-hook 'org-babel-after-execute-hook #'org-redisplay-inline-images) (after! python - (setq org-babel-python-command python-shell-interpreter))) + (setq org-babel-python-command python-shell-interpreter)) + + ;; NOTE Backported from Emacs 27.1 + ;; DEPRECATED Remove when 26.x support is dropped + (unless EMACS27+ + (defadvice! +org--dont-suppress-window-changes-a (orig-fn &rest args) + :around #'org-babel-execute:emacs-lisp + (letf! ((#'current-window-configuration #'ignore) + (#'set-window-configuration #'ignore)) + (apply orig-fn args))))) (defun +org-init-babel-lazy-loader-h ()