Fork me on GitHub
#spacemacs
<
2017-01-31
>
ag02:01:38

actually I got help in #cider channel. I was able to fix my issue

eggsyntax15:01:36

Found a problem with the desktop approach above (see 1/28) -- it reopens all buffers, even those which aren't currently displayed, so over time you build up a vast list of open buffers (all that you've ever opened since starting to use this approach, except any you've explicitly killed). I expect there's a reasonable workaround, but wanted to point it out in case anyone else has been trying this approach.

alandipert15:01:05

@eggsyntax one workaround i've employed around the general problem of lots of open buffers, is marking old buffers in ibuffer manually

alandipert15:01:44

(ibuffer :variables
                                                ibuffer-group-buffers-by 'projects
                                                ibuffer-old-time 8)

alandipert15:01:24

8 there is hrs, i think default is 72

eggsyntax15:01:04

Does marking them like that cause them to be automatically killed? If so, do you happen to know what the behavior is if a buffer has unsaved changes?

alandipert15:01:10

na marking just 'selects' them, similar to selecting by regex

alandipert15:01:22

then there's a separate command to close them, that confirms with you when there are unsaved changes

alandipert15:01:38

ibuffer-mark-old-buffers is the selection function

eggsyntax15:01:56

Excellent, thanks! Do you recall what the command is to then kill marked buffers? Not seeing one doing a quick search on kill-marked.

eggsyntax15:01:51

thx 🙂