Skip to main content
14 events
when toggle format what by license comment
May 18, 2020 at 15:13 vote accept Elijah
May 18, 2020 at 15:13 answer added Elijah timeline score: 0
May 15, 2020 at 2:46 answer added NickD timeline score: 1
May 14, 2020 at 22:46 comment added Muihlinn bury-buffer probably will work better than constantly opening/killing buffers. You could use after advice to run your code if there is no suitable place to hook it
May 14, 2020 at 22:42 history edited Elijah CC BY-SA 4.0
added 519 characters in body
S May 14, 2020 at 22:41 history suggested Muihlinn CC BY-SA 4.0
buffer when it means window
May 14, 2020 at 22:40 comment added Elijah Hi @NickD, what is creating the new window is the frames-only mode. It is important for me since I use a tilling window manager, so no reason to split windows in Emacs. If I disable it, the problem goes away. @Muihlinn, I update my post with a function is almost correct. I just need to figure out how to call it with a hook after the org-latex-preview execution.
May 14, 2020 at 21:27 comment added Muihlinn I don't use embebbed latex as much to feel such things like an annoyance. Anyhoo I guess that you can pass -q to dvips to silence it, customizing org-preview-latex-process-alist. It's just a wild guess, I don't know if silencing it will have the desired effect.
May 14, 2020 at 21:12 comment added NickD I don't get a new window at all. Can you reproduce this with emacs -q? If you cannot, then something in your init file is doing this. Alternatively, you might try to install imagemagick and do (setq org-preview-latex-default-process 'imagemagick) and see if that behaves any better.
May 14, 2020 at 21:00 comment added Elijah Hi Muihlinn! Thanks, in fact on second look what I am trying to delete is a frame with a lone window. I tried adding a hook to post-command-hook with delete-window but I am getting the error: Attempt to delete minibuffer or sole ordinary window. Do you have some suggestion?
May 14, 2020 at 20:48 review Suggested edits
S May 14, 2020 at 22:41
May 14, 2020 at 20:46 comment added Muihlinn I think you mean a new window, not buffer. I don't think you can inhibit the buffer creation, but maybe you can dismiss the window.
May 14, 2020 at 19:19 review First posts
May 14, 2020 at 20:49
May 14, 2020 at 19:18 history asked Elijah CC BY-SA 4.0