Make the org export dispatcher not delete other windows

Signed-off-by: MagicRB <richard@brezak.sk>
This commit is contained in:
MagicRB 2023-10-04 15:13:59 +02:00
parent 5490245849
commit 4b5e9a6371
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -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