Merge pull request #4236 from eccentric-j/eval-org-babel-ui-elisp

Created PR to backport emacs-lisp org-babel evaluation to manage the UI
This commit is contained in:
Henrik Lissner 2020-11-10 18:31:20 -05:00 committed by GitHub
commit 0c4e300c36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) (add-hook 'org-babel-after-execute-hook #'org-redisplay-inline-images)
(after! python (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 () (defun +org-init-babel-lazy-loader-h ()