Questions tagged [persp-mode]
11 questions
5
votes
1 answer
Opening a file from a new/different Projectile project in the same workspace in Doom Emacs
If I'm working on one project and I switch over to a buffer from another the default behavior of Doom Emacs seems to be to open the new buffer in a new workspace (when workspaces are enabled). I want the default behavior to be to open it in the…

Dargscisyhp
- 370
- 1
- 12
3
votes
2 answers
project based ibuffer
I have emacs 27 on MacOS running in -nw mode.
I have prelude installed. It comes with projectile.
I regularly work on two git repos in my disk.
~/client1/
~/client2/
In any given day, I would open files in both those folders.
When I press C-x C-b,…

american-ninja-warrior
- 3,773
- 2
- 21
- 40
3
votes
1 answer
Persp-mode doesn't recover last activated perspective and doesn't restore all buffers
I'm using persp-mode.
(setq-default use-package-always-defer t)
(use-package persp-mode
:init
(setq-default
persp-auto-resume-time 0.1
persp-keymap-prefix (kbd "C-c C-w"))
(persp-mode 1)
:config
(setq-default
…

Mathieu Marques
- 1,953
- 1
- 13
- 30
2
votes
0 answers
Can I set a variable scoped to a perspective?
I have a large monorepo repository and open different parts of it in a persp-mode perspective. It would be nice if for all buffers owned by that perspective I could set for example projectile-project-root. Is this possible?
Side note (not part of…

George Mauer
- 397
- 2
- 9
1
vote
1 answer
How to tell persp-mode to ignore some buffers by major-mode
I'm new to persp-mode and don't fully understand its API, noticed that the Magit buffers are restored and set to fundamental-mode when restarting Emacs, and the list of these buffers grows as I work on different projects, I would like to have these…

shackra
- 2,702
- 18
- 47
1
vote
1 answer
How I can make persp-mode save my workspace on every change?
I'm using persp-mode to save my workspace/desktop/opened buffers on Emacs close and restore it on Emacs start (configured via doom-emacs. However, sometimes I can't properly shutdown Emacs (e.g. laptop's sleep failure, empty battery etc.), so I…

Nikolai Prokoschenko
- 115
- 5
0
votes
1 answer
How do I unset all key bindings defined in persp-mode-map and persp-key-map?
I want to unset all key bindings defined in persp-mode-map and persp-key-map.
As usual, I tried the following but the bindings remain effective sticky.
This is a behavior that I have never experienced in other modes unlike persp-mode, because the…

roomworoof
- 394
- 2
- 9
0
votes
0 answers
Different conda environment for perspectives / workspaces
I'm using Doom Emacs with workspaces and treemacs perspectives, so that I can work on different projects simultaneously, all in the same framework. But for two different Python projects, they require different Conda environments. It looks…

0xLN
- 31
- 1
0
votes
0 answers
When navigating to files, use existing persp-mode perspective if one exists
If for example I visit an org file in a persp-mode.el perspective A, then in a different perspective B run org-open-at-point to visit that same file path, I would like that to open in perspective A.
That org command is my main use case, but I would…

Croad Langshan
- 3,192
- 14
- 42
0
votes
1 answer
org-roam and persp-mode.el: persp-def-auto-persp has nil (buffer-file-name)
I would like all org-roam buffers to automatically go into a persp-mode.el perspective.
org-roam-mode is a global minor mode, so I can't use that as a way to detect whether a new buffer is for org-roam.
I tried this:
(defun my/roam-buffer (_buffer…

Croad Langshan
- 3,192
- 14
- 42
0
votes
0 answers
emacsclient crashes on start
I use doom emacs. Starting emacs normally works just fine.
Having an emacs daemon and trying to use emacsclient -c causes the following error:
*ERROR*: Symbol’s function definition is void: persp-mode-start-and-remove-from-make-frame-hook
I am…

The Light Spark
- 101
- 1