From 4b5e9a6371269b0c8be60f5bd0bb14adee373498 Mon Sep 17 00:00:00 2001 From: MagicRB Date: Wed, 4 Oct 2023 15:13:59 +0200 Subject: [PATCH] Make the org export dispatcher not delete other windows Signed-off-by: MagicRB --- emacs-lisp/org_mode.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/emacs-lisp/org_mode.org b/emacs-lisp/org_mode.org index c967e6f..9e05ea2 100644 --- a/emacs-lisp/org_mode.org +++ b/emacs-lisp/org_mode.org @@ -130,6 +130,16 @@ Org Mode by default considers ~.aux~ files as log files and deletes them. Which (setq org-latex-logfiles-extensions (remove "aux" org-latex-logfiles-extensions)) #+end_src +Don't delete other windows when exporting, it is very distracting, just use popper. + +#+begin_src emacs-lisp + (defun org-export--dispatch-ui/popper (fun &rest r) + (flet ((delete-other-windows (&rest r) (ignore))) + (apply fun r))) + (advice-add 'org-export--dispatch-ui :around 'org-export--dispatch-ui/popper) +#+end_src + +#+RESULTS: ** Sliced Previews