0

I use treemacs to navigate files and functions, open in a panel to the left (window 1).

I also like the transpose frame package functions to change the orientation of windows, however this doesn't play nice when treemacs is open. It can move around the treemacs panel in (almost?) unrecoverable fashion.

I think hacking a solution would work. What is the correct/most efficient way to "wrap" the transpose frame functions (like rotate-frame) with some before/after hooks such that:

  • if treemacs is open, first close it
  • then run transpose frame function
  • then re-open treemacs, only if it was open before

The function should operate normally if treemacs was never open.

Thanks!

This site is temporarily in read only mode and not accepting new answers.

Browse other questions tagged .