Fork me on GitHub
#emacs
<
2018-04-20
>
artenator05:04:25

anyone else having issues lately with font highlighting of required vars?

sarna11:04:14

nvm, I just got confused by slack :^)

bozhidar05:04:28

@soosool12 What do you mean by this? The dynamic font-locking in CIDER?

artenator05:04:23

@bozhidar hi! yes the dynamic font locking in cider seems to not be working for me as of yesterday

artenator05:04:34

at least for requires

bozhidar05:04:51

Can I see an example?

bozhidar05:04:24

Those were never font-locked dynamically by CIDER - they were always statically font-locked by clojure-mode.

bozhidar05:04:15

Likely that’s a result of some recent changes we had in clojure-mode to simplify font-locking.

bozhidar05:04:44

Perhaps this is a regression from there. You can file a ticket, as honestly I haven’t tested the results of those changes much - I just agreed with the general sentiment that the previous code wasn’t working properly.

artenator05:04:02

ohhh.. i see. OK thank you for the quick response! I will file a ticket and revert to an older version for now… 🙂

artenator05:04:52

I have been trying to fix this issue with my CIDER config as well…

dpsutton05:04:14

What's the issue here

artenator05:04:42

previously, i was able to set a default cljs repl. I was given an array of choices (e.g. fighweel, rhino) but now it says mismatch/nil and i’m unable to change the state

dpsutton05:04:32

You just down graded right?

dpsutton05:04:44

I think that was a new variable

dpsutton05:04:08

Do you know how to navigate to functions in elisp?

dpsutton05:04:18

I'd post the code but I'm on mobile in bed

artenator05:04:42

Ahhh no i’ve never navigated functions in elisp. I will try it out though! If I get stuck, maybe i’ll direct message you another time if that’s ok 🙂

dpsutton05:04:25

Are you in emacs or spacacs

dpsutton05:04:50

Awesome. Hit C-c C-f

dpsutton05:04:06

And type cider Jack in and it should take you to that function

dpsutton05:04:43

At the bottom there should be a line like (when cljs-too (cider sibling repl ...)) Or something similar

dpsutton05:04:58

You'll want to navigate to that function with meta period when point (the cursor) is on top of that symbol

dpsutton05:04:07

And let me know if anything above is not clear

artenator05:04:19

Hmm. i’m getting C-c C-f is undefined I need to be in the elisp file when doing this right? I’m not sure where to find it since I installed with melpa

dpsutton05:04:01

Ah yes. I'm chording from memory. C-h C-f

dpsutton05:04:10

The help menu :)

artenator05:04:37

ahhh! found it!

artenator05:04:25

What’s next?

dpsutton05:04:06

Do you see that form at the end that starts the cljs repl? (when cljs-too ...

dpsutton05:04:21

That function which is called does at the work. Navigate to it

dpsutton05:04:40

You can navigate to it if you put your cursor on it and hit meta period

dpsutton05:04:11

Meta comma will pop you back out from this. Very handy nav tool

artenator05:04:05

awesome! found it! meta-period didn’t work here unfortunately… but it works fine in my clojure projects. in cider.el i get TAGS does not exist

artenator05:04:19

but i was able to get to the function definition

dpsutton05:04:35

Ah you're on emacs 24 then I guess

artenator05:04:44

yes i am 😞

dpsutton05:04:57

Ok. Well now you're looking for something that looks like cljs repl type

dpsutton05:04:33

It's gonna figure out what kind of repl to crank up and do that. So root around in here for the variable name and then go customize that one as it needs

dpsutton05:04:49

It might have lein in the name as this was before they were unified

artenator05:04:27

ahh i see. cool! I had no idea you could navigate the package code like this 😎 I really appreciate the help!

dpsutton06:04:13

Emacs is crazy awesome like that

dpsutton06:04:24

Self documenting editor

dpsutton06:04:00

If you update to 25 your nav will get easier. And then you can just trace things around and see what's up and how everything works

artenator06:04:09

I am afraid of upgrading because I’ve spent so much time making my config work the way I like… haha. Isn’t 26 out now too?

dpsutton06:04:36

I'm not sure. I don't think there was anything breaking in 24->25. Also CIDER dropped support for 24 I believe. It might still work but it's no longer tested against that

bozhidar06:04:15

Generally things rarely break between major Emacs versions. You might get some deprecation warnings here and there, but the Emacs team is pretty big on backwards compatibility.

bozhidar06:04:46

> previously, i was able to set a default cljs repl. I was given an array of choices (e.g. fighweel, rhino) but now it says mismatch/nil and i’m unable to change the state

bozhidar06:04:28

Yeah, what you describe is something new, available only in 0.17-snapshot, which should become the next stable release pretty soon.

alice07:04:22

Got a problem some emacs users here might be familiar with. https://i.redditmedia.com/rED7x8F2_A6hiKwjnwiucwAxF2E5x1DEG4xg7zhnrn8.png?w=1024&amp;s=7964cb9f406003edc21d772e12f17ffa Whenever there is an error spacemacs forces new repls to open and it's SUPER ANNOYING

didibus20:04:39

I have this problem. Havnt found the root cause. For me it happens if neotree is opened.

alice07:04:38

Has anyone else seen this?

mping14:04:02

greetings fellows, is there any fuzzy matcher for emacs that searches in file contents?

shakdwipeea15:04:15

@mping have you tried rgrep ?

mping15:04:48

I’d like a more interactive thing, like this: https://github.com/seenaburns/fzf.el/

mping15:04:05

(that one is almost what I want)

cmack15:04:36

Yes. I use helm-ag to do this but have it modified to use ripgrep for the searching