Fork me on GitHub
#emacs
<
2019-07-20
>
theeternalpulse03:07:12

I use spacemacs at workv

Daouda08:07:48

hey Folks, Is there a way to detect unused require in emacs?

practicalli-johnny09:07:38

@quieterkali detecting unused requires is something I would use a linter for. I have clj-kondo continually running via flycheck. If that doesn't work, try joker or Eastwood https://practicalli.github.io/spacemacs/improving-code/linting/

Daouda09:07:48

I’ve picked clj-kondo and it’s working fine. Thank you very much @jr0cket 😄

borkdude09:07:57

Currently working on this new feature: https://twitter.com/borkdude/status/1152516082630103040

👏 8
👍 12
dmaiocchi13:07:38

as newbie question to emacs/cider/lisp. So I have orignally took the env. setup from cljoure the brave and the true doc. everything works perfectly and so on.

dmaiocchi13:07:01

I have only one problem from time to time with parenthesis, () like i can't delete parenthesis, is this a special config from CIDER or other emacs plugins which works on lisp? My goal would be to be able to delete parenthesis/deal with them as the current conf 😁

bhagany13:07:45

Hi @darioszr I’m unfamiliar with exactly what Brave and True tells you to do, but the thing you’re describing is probably due to an emacs package called either paredit, or smartparens

dmaiocchi13:07:09

ah ok thx it might be true. let me check

bhagany13:07:30

They’re editing modes specifically for lisps, and they prevent you from having unbalanced parentheses. It’s really nice when you get used to it, but it can be confusing when you’re new

bhagany13:07:43

I’d encourage you to give them a shot :)

dmaiocchi13:07:03

I'm already using it, but I had no clue that I have beeing using it 😁

dmaiocchi13:07:39

I mean Like months ago I downladed the preparred conf from the brave and true, so I just learned emacs from scratch.. 😁

dmaiocchi13:07:47

but paraedit is a super hint

dmaiocchi13:07:05

now at least I know what I'm using for () , I was thinking that CIDER did it for me 😁 , so I can look at the documenation.. yep, Initially it was kind pita to deal with ().. I find my way , but I'm missing other keyboard shortcuts imho.. thx! 😁 clojure-berlin

dmaiocchi18:07:26

btw, I disabled paradit. :face_palm: 🤓 🤪

dmaiocchi18:07:44

I have interpreted the fact that in this page(referenced in many pages) https://www.emacswiki.org/emacs/PareditCheatsheet, the cheatsheet isn't there

4
dmaiocchi18:07:52

so I interpret the fact that isn't there, it was a sign from an obscure AI which govern the world sent to me to say stop using paraedit.. I have tried it use it, but deleting paranthesis etc, was really pita more then any advantages... 😁

practicalli-johnny19:07:52

@darioszr BraveClojure Emacs setup is very outdated. Take a look at the excellent http://docs.cider.mx website. You will benefit from using a tool like paredit or the newer smartparens package to ensure your parentheses stay balance and donstructural editing. A missing paren will break your code. All the Clojure developers I know use some package to manage their parens

dmaiocchi19:07:00

thx! I will have look

andy.fingerhut19:07:51

I get by with only a mode that highlights the parent/bracket/curly-brace that matches the one my cursor is on, and a keystroke to move the cursor there, but I know lots of folks really appreciate more support than that.

clj 4
andy.fingerhut19:07:00

oh, and auto-indenting of clojure-mode

andy.fingerhut20:07:36

emacs + evil + doom. Doesn't sound ominous at all 🙂

clj 8