How do you work with multiple git worktrees?
I'm curious - how do you work with multiple git worktrees in Emacs? I tried to figure out my own way but still can't get it to what I want. And what I'm trying to achieve is:
- worktree connected to projectile and perspective (or whatever other solution would filter opened buffers to worktree-related files only)
- LSP working for each worktree I'm currently working on
- when creating a new worktree, ideally I'd like to have it auto-added to projectile's "known projects" and opened in separate perspective
- when deleting a worktree, analogically - I'd like it to be removed from known projects and LSP known directories
I'm currently at the stage where all these steps invoked separately by hand (creating new project, new perpective, adding to LSP, and so on...) more or less work, but I feel like I'm overcomplicating things a bit.
Posted Jun 12, 2026, 12:42 PM UTC