mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
Make the org export dispatcher not delete other windows
Signed-off-by: MagicRB <richard@brezak.sk>
This commit is contained in:
parent
5490245849
commit
4b5e9a6371
|
@ -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))
|
(setq org-latex-logfiles-extensions (remove "aux" org-latex-logfiles-extensions))
|
||||||
#+end_src
|
#+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
|
** Sliced Previews
|
||||||
|
|
Loading…
Reference in a new issue