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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.