Fork me on GitHub
#emacs
<
2018-03-26
>
stardiviner07:03:30

How to define a funtion in let- binding variables? Like this:

elisp
(let ((bind-vars (lambda (var) ...))) (--> body (bind-vars it) (another-func it))

gonewest81817:03:34

That will work if you use (funcall bind-vars it) to invoke the function.

gonewest81817:03:04

or look into cl-flet

maleghast13:03:54

Hello All 🙂

maleghast13:03:38

Sorry, sent before ready...

maleghast13:03:57

OK, so I can't remember how to install / upgrade Cider... Anyone able to help me out here..?

maleghast13:03:26

(yes I know I could Google it, but I am looking for a learning experience if anyone has the time 🙂 )

dpsutton13:03:38

M-x list-packages. search for CIDER, hit u then x. (u is mark for upgrade) (x is do the stuff i've told you to do)

maleghast13:03:00

@dpsutton - Thanks, that makes a lot of sense!

maleghast14:03:32

Unfortunately, it's not listed in that buffer, and yet I am running CIDER right now... In fact I scrolled back up and there is a warning about it being 0.14 and out of step with the version of nrepl that is running, so I know which version I have now...

mpenet14:03:47

you prolly need to run package-refresh-contents

maleghast14:03:08

@mpenet Nope, it's not there...

mpenet14:03:42

the nuclear option otherwise is to nuke .emacs.d/elpa and relaunch emacs

maleghast14:03:43

Is is possible that if I installed it as part of a whole Leiningen Profiles thing ages ago that it might be over-riding things?

mpenet14:03:25

you also need to have melpa in your package list if that's not the case already

maleghast14:03:15

OK, this is where I make a terrible admission... I am using someone else's Emacs setup (with their permission) that is probably wildly out of date, and while I have become productive with Emacs day-to-day I have not really decoded how to make it my actual slave, I am more a slave to it... 😉

maleghast15:03:33

I have sorted it - thanks! (I moved to Spacemacs (in Holy mode) and have now got latest Cider)

theeternalpulse18:03:51

I have an emacs file opened that also happens to be a package I installed. My "goto definition" command goes to the elpa file definition rather than the one in the project directory.

theeternalpulse18:03:05

Is there a priority setting for the definition search I need to set up?