reddit / emacs

[Help] Project.el and Tab-bar-mode in place of Projectile and Persp-mode/Perspective-mode

csemacs · 2022-05-05 21:58
Has anyone migrated from using `Projectile` and `Persp-mode`/`Perspective-mode` to `Project.el` and `Tab-bar-mode`? Essentially `Tabbar` and `Project.el` integration. How do we automatically create a new `tabbar` with entering a new project? Also switch tabs in tabbar when switching projects? Please share your config. Thank you.
redblobgames · 2022-05-05 22:26
I've tried to do this but couldn't get it to work the way I want. You might take a look at - https://github.com/mclear-tools/tabspaces - https://github.com/fritzgrabo/project-tab-groups - https://www.rousette.org.uk/archives/using-the-tab-bar-in-emacs/ - https://github.com/florommel/bufferlo
csemacs · 2022-05-06 01:10
Thanks looks like [https://github.com/mclear-tools/tabspaces](https://github.com/mclear-tools/tabspaces) is pretty close to what I need but there is no ivy integration. ​ Will keep looking.
mclearc · 2022-05-06 05:38
I've worked up a quick hack that should work with ivy -- let me know if it works for you. ```emacs-lisp (defun tabspaces-ivy-switch-buffer (buffer) "Display the local buffer BUFFER in the selected window. This is the frame/tab-local equivilant to `switch-to-buffer'." (interactive (list (let ((blst (mapcar #'buffer-name (tabspaces-buffer-list)))) (read-buffer "Switch to local buffer: " blst nil (lambda (b) (member (if (stringp b) b (car b)) blst)))))) (ivy-switch-buffer buffer)) ```