Fork me on GitHub
#cider
<
2017-01-12
>
qqq06:01:41

is there a way to tell projectile-find-file to only show .clj .cljs *.cljc files in src ?

qqq06:01:07

or rather, is there a way from elisp to call projectile-find-file so that it only shows .clj .cljs *.cljc files ?

andrewboltachev08:01:12

Hi. Guys, I'm brand new to emacs after about 6 years of vim. How do I add melpa to have access to cider?

andrewboltachev08:01:44

(I have Ubuntu and bare emacs24 installation)

qqq08:01:10

(require 'package)

(add-to-list 'package-archives
	     '("melpa" . "") t)
(package-initialize)

andrewboltachev08:01:21

@qqq thanks, but where to put this? (I have ~/.emacs.d)

qqq08:01:10

~/.emacs.d/init.el

andrewboltachev08:01:21

huh, thanks a lot 😄

qqq08:01:28

you also want to get used to C-x C-e

qqq08:01:45

if you do it in a *.el file, it'll execute the line -- so you can write your emacs config w/o having to close/open emacs all the time

qqq08:01:57

C-x C-e = eval last symbolic expr

andrewboltachev08:01:03

aha, I were thinking abt that

qqq08:01:24

you might also consider starting with spacemacs; I don't use it myself but heard good things aout it

andrewboltachev08:01:31

uhm, hybrid might be even harder to start with 😄

qqq08:01:51

I used vim for 15+ years, switched to emacs for clojure.

qqq08:01:15

It took me about a month to configure emacs to my liking -- and almost all of my bindings are via evil.

qqq09:01:34

vi emulation in emacs

practicalli-johnny09:01:21

@andrewboltachev: Spacemacs has a great text-based menu system for commands, organised mnemonically by feature. This makes using Emacs more discoverable. Alternatively, look into adding Helm, WhichKey and Company mode to your Emacs setup.

andrewboltachev10:01:22

@qqq @jr0cket thanks, but most of ppl are probably still using vanilla, so it would be easier to communicate with others

borkdude15:01:24

I might be asking too much, but is CIDER/clj-refactor able to detect unused local variables (in a let)?

benedek15:01:13

yes and no 😉

benedek15:01:54

flycheck should do the showing already

benedek15:01:07

the cljr issue is about adding a feature to actually auto remove them

benedek15:01:44

haha it seems the issue is originating from you 😉

benedek15:01:25

we kinda have the backend for this

benedek15:01:30

in refactor-nrepl

borkdude15:01:06

What should I see in CIDER, is flycheck enabled there?

borkdude15:01:19

I do see FlyC at the bottom

borkdude15:01:48

seems to be enabled, but it doesn’t highlight it

benedek15:01:36

as i said on the issue: > it seems to me now that this should be available already in flycheck clojure via eastwood :unused-locals and :unused-fn-args only I did not manage to get the flycheck config right to prove. It does rather belong to flycheck too

borkdude15:01:38

it needs eastwood for this, right? I might not have that enabled

benedek15:01:42

has not changed since then

benedek15:01:11

esentially yes

benedek16:01:17

let me know @borkdude if that worked

borkdude16:01:43

@benedek sorry, I used Cursive again for this 😉

benedek16:01:56

haha, sad times

borkdude16:01:07

Happens only a few times a year, but at least I got something out of my license 🙂

benedek16:01:21

haha, sad times all around 😉

benedek16:01:47

i might just do the cljr feature, nice cleanup feature actually...

benedek16:01:59

unless you feel like contributing?! 😜

borkdude16:01:26

I do feel like it, but I think I’ll need a vacation first 😉

borkdude16:01:51

I never did much elisp tbh

benedek16:01:29

i don’t have much time on my hands either. so let’s see who gets there first. re. elisp: ‘modern’ elisp got some influence from cljoure. there are sideeffects tho. in general it is a familiar landscape for a clojurian i think

dottedmag18:01:54

Is there an analogue for M-x re-builder for Clojure regexps?