Fork me on GitHub
#spacemacs
<
2017-09-06
>
jeff.terrell00:09:29

Do y'all ever undo a couple dozen changes, then maybe yank a line or two into a register, then try to redo those changes and get the following error in your minibuffer? Unrecognized entry in undo list undo-tree-canary It breaks redo at that point, which is pretty frustrating. rage1

ag00:09:35

@jeff.terrell sounds like upstream issue in undo-tree.el

jeff.terrell00:09:06

That's what I'm afraid of. Might try to keep an eye out next time it happens to see if I can find a reproducible triggering process. Thanks @ag.

claudiu08:09:04

Does anyone know how to display the full path in the powerline ? Seeing only core.clj is really not ideal.

jumar10:09:08

@U3LP7DWPR not exactly the solution but I quite frequently use SPC f y to show and copy the full path.

jeff.terrell13:09:20

That's what I do too.

ag17:09:28

hey guys, there's also :f ex-command . north remembers vimmers know

jeff.terrell20:09:29

Oh nice! Didn't know about that in vim. (I always used C-g to do the same thing.) Looks like :f is different from SPC f y in Spacemacs because the former doesn't copy the filename to the clipboard.

ag20:09:42

no it doesn't, that's a quick way to peak in what exactly file you at

eggsyntax21:09:21

Anyone happen to know if there's a way to copy the namespace?

ag21:09:24

@U077BEWNQ there's a way 😉

ag21:09:33

(cider-current-ns)

eggsyntax21:09:02

Oooh, nice. Thanks! I'd been thinking of writing a fn to do it, but I'm quite happy it's already there.

ag21:09:34

you can bind this to a key ((kill-new (cider-current-ns) and voila you have a way to copy current ns to the kill-ring

eggsyntax21:09:58

Hmm, I don't actually have that fn available. Maybe my cider is out of date.

ag21:09:32

you have to be connected/jacked-in

ag21:09:08

what (cider-version) shows?

eggsyntax21:09:34

0.15.0-snapshot

eggsyntax21:09:42

What one are you on?

ag21:09:39

try SPC f1 and then cider-current-ns

ag21:09:58

does it show up in apropos?

eggsyntax21:09:15

Huh, it does.

eggsyntax21:09:59

And I can run it as a line of emacs lisp, and it works -- it just wasn't showing up in SPC : / M-x

ag21:09:11

then switch to clj/cljs file (make sure you are connected) and then M-: (cider-current-ns)

ag21:09:30

remember if function is non-interactive - it won't show ma in M-x

ag21:09:49

and that is not an interactive function, yet you still can eval it

eggsyntax21:09:05

Ahhhhh. That would do it. Thanks! That clues me in to not just that, but a broader useful point.

ag21:09:05

press M-:

eggsyntax21:09:17

Totally, works a charm 🙂

jeff.terrell22:09:18

Oh fantastic. Did not know that that's what interactive meant! Nice one @ag.

chris15:09:54

fwiw you can add an hook to clojure mode to display the current ns

chris15:09:42

this, especially the spaceline segments file is a good place to start along with (cider-current-ns), it should be fairly simple

eggsyntax21:09:49

@jeff.terrell yes, and it's horrible when it happens ðŸ˜