Bad-ptr / persp-mode.el

named perspectives(set of buffers/window configs) for emacs
401 stars 44 forks source link

Add persp-next and persp-prev functions #19

Closed CestDiego closed 9 years ago

CestDiego commented 9 years ago

just like in perspectives.el

CestDiego commented 9 years ago

@Bad-ptr just as a side-note, is there a way to blacklist a perspective so it's not saved? For example I have a custom perspective for ERC, and when I restart Emacs the perspective just stays there without connecting.

Bad-ptr commented 9 years ago

is there a way to blacklist a perspective so it's not saved?

No, but it could be implemented.

CestDiego commented 9 years ago

How could it be implemented? Any hints? On Sep 7, 2015 3:37 AM, "Constantin Kulikov" notifications@github.com wrote:

is there a way to blacklist a perspective so it's not saved?

No, but it could be implemented.

— Reply to this email directly or view it on GitHub https://github.com/Bad-ptr/persp-mode.el/pull/19#issuecomment-138236530.

Bad-ptr commented 9 years ago

I was near to press the 'merge pull request' button, but then decided to take a closer look...) In the persp-next you use cl-position, and in the persp-prev -- position. As persp-mode currently uses cl (not cl-lib), the right function to use is position.(Am I right?)

Bad-ptr commented 9 years ago

is there a way to blacklist a perspective so it's not saved?

How could it be implemented? Any hints?

The hint: I think you could set something like dont-save-to-file perspective parameter(see set-persp-parameter and persp-parameter functions) and filter out perspectives which have this parameter set to t in the persps-to-savelist function.

CestDiego commented 9 years ago

In the persp-next you use cl-position

This was a typo. I fixed it