Reftex-toc prevent vsplit on goto

97 Views Asked by At

I am currently using spacemacs with auctex. When I use reftex-toc and goto an item then it performs a vsplit and shows the content in the right window. How do I prevent this splitting behaviour? I would like it to open in the current buffer from which the command was issued.

It is related to reftex-toc.el.

I added this hook to maximize the newly opened window: (add-hook 'reftex-toc-mode-hook 'spacemacs/toggle-maximize-buffer) but it is a suboptimal solution, as it influences other splits I might have made.


1

There are 1 best solutions below

4
Stefan Kamphausen On

What you describe could be related to the way you select an item.

In normal Emacs (not Spacemacs), I see that SPC is bound to reftex-toc-view-line which behaves just how you describe it. But RET is bound to reftex-toc-goto-line-and-hide which seems to do what you want.

Maybe you just need to find out where that function is on your keymap.