Discussion about all editors used for Clojure/ClojureScript
bozhidar 2015-06-11T06:03:09.000777Z

@chris: Thanks!

andrewvida 2015-06-11T14:22:02.000779Z

Anyone using Atom editor (http://atom.io) for clojure development?

akiva 2015-06-11T14:22:38.000780Z

I’ve not seen it discussed much in here.

andrewvida 2015-06-11T14:24:48.000781Z

I’ve enjoyed using it when developing in Ruby. I haven’t been able to get my brain wrapped around Cursive yet, so maybe I’ll try to figure out a workflow with it.

akiva 2015-06-11T14:26:06.000782Z

I say go with whatever’s most comfortable when learning a new language.

benedek 2015-06-11T14:26:10.000783Z

i was asking the same question around here last week

benedek 2015-06-11T14:26:35.000784Z

trying to figure out if i should have a look at atom to do a cider-nrepl/refactor-nrepl integration for it

benedek 2015-06-11T14:26:46.000785Z

but i don’t think i got many answers...

benedek 2015-06-11T14:26:51.000786Z

(well, none)

gjnoonan 2015-06-11T14:27:22.000787Z

@andrewvida @benedek a colleague of mine does

gjnoonan 2015-06-11T14:27:51.000788Z

I personally find it too limiting

benedek 2015-06-11T14:28:18.000789Z

@andrewvida: you might want to check light table as it has really good clj support via https://github.com/rundis/clj-light-refactor

benedek 2015-06-11T14:28:31.000791Z

i’ve never really tried tbh

benedek 2015-06-11T14:28:53.000792Z

@andrewvida: if you don’t want to embrace the :emacs: way 😉

akiva 2015-06-11T14:29:08.000793Z


andrewvida 2015-06-11T14:29:10.000794Z


andrewvida 2015-06-11T14:30:27.000795Z

I’m a beginner, so I didn’t want to try to learn a emacs as well. I have heard good things about spacemacs though…

benedek 2015-06-11T14:31:15.000796Z

spaceemacs is deffo an option. or you can use https://github.com/clojure-emacs/example-config

aaronm 2015-06-11T14:31:17.000798Z

spacemacs is great if you know vi; not sure I’d recommend it to someone who didn’t already know vi or emacs, though 😉

akiva 2015-06-11T14:31:30.000799Z

@aaronm is correct.

benedek 2015-06-11T14:31:31.000800Z

which gives you a vanilla emacs with all clj goodies (you still need to learn emacs ofc)

akiva 2015-06-11T14:31:49.000801Z

But if you don’t know vi, though… [shakes head sadly]

gjnoonan 2015-06-11T14:32:01.000802Z

@aaronm I actually would, given the sheer productivity and power you get by learning it

akiva 2015-06-11T14:32:21.000803Z

@gjnoonan, but not if they’re also trying to learn a new language, that is.

aaronm 2015-06-11T14:32:26.000804Z

@gjnoonan: I’d absolutely recommend learning emacs/spacemacs/vim+tpope’s stuff eventually

gjnoonan 2015-06-11T14:32:38.000805Z

even if it is learning a step or command a week

aaronm 2015-06-11T14:32:53.000806Z

but I’m leery of piling on “learn all this other stuff as you’re trying to get into the language"

benedek 2015-06-11T14:33:12.000808Z

@aaronm: 👍 but light table is there if @andrewvida wants to focus on the lang first

aaronm 2015-06-11T14:33:37.000809Z

light table is probably a good option if you’re used to the non-esoteric editors, yeah

gjnoonan 2015-06-11T14:33:45.000810Z

everyone learns differently. I can learn multiple things concurrently. Guess I’m lucky

benedek 2015-06-11T14:34:13.000811Z

or an 👽 😉

gjnoonan 2015-06-11T14:34:16.000812Z

Or cursive if you have never used :vim: or :emacs:

aaronm 2015-06-11T14:35:11.000813Z

I would absolutely recommend any programmer learn :vim: or :emacs:, as you can take them to pretty much any language you want to use

gjnoonan 2015-06-11T14:35:30.000814Z

I agree

benedek 2015-06-11T14:35:47.000815Z

and as clojure is a lisp and :emacs: is a lisp machine it is just a natural fit 😉

aaronm 2015-06-11T14:35:49.000816Z

and as someone who likes using a bunch of different languages, I’d much rather stay in one editor than switching between specialized IDEs :simple_smile:

gjnoonan 2015-06-11T14:36:03.000817Z

20year :vim: veteran and about 2 weeks with spac:emacs:

akiva 2015-06-11T14:36:23.000818Z

Hah, @gjnoonan and I are pretty much the same there.

aghecht 2015-06-11T14:36:47.000820Z

I was a 25 year :vim: veteran before switching to :emacs:

benedek 2015-06-11T14:36:54.000821Z

poor @andrewvida escaped the :emacs: / :vim: believers 😉

andrewvida 2015-06-11T14:37:03.000822Z


aaronm 2015-06-11T14:37:06.000823Z

I’m surprised at how quickly spacemacs is taking off

sveri 2015-06-11T14:37:33.000824Z

Wow, a channel solely for editor wars, nice 😄

akiva 2015-06-11T14:37:34.000825Z

I started with it a couple of months ago and at first it was pretty touch-and-go but now it’s solid and sleek.

benedek 2015-06-11T14:37:52.000826Z

@sveri on the contrary for editor love 😄

aaronm 2015-06-11T14:38:18.000827Z

no wars here, we all join hands and welcome each other, text editors are fun 😉

andrewvida 2015-06-11T14:38:52.000828Z

yep! great discussion everyone!

aghecht 2015-06-11T14:39:10.000829Z

Yeah, I respect people who use other editors. Hell, I still use IntelliJ for Java.

aaronm 2015-06-11T14:39:16.000830Z

the problem with having used :vim: for over a decade now is that I can barely use any editor that doesn’t have decent :vim: emulation, though 😦

aaronm 2015-06-11T14:40:19.000831Z

@aghecht: if I were writing Java, I’d probably use IntelliJ as well, to be honest.

gjnoonan 2015-06-11T14:41:38.000832Z

@aghecht: Couldn’t use anything less for Java. I have VI emulation on top, but that is just because of muscle memory

aghecht 2015-06-11T14:42:32.000833Z

I use Emacs emulation for the same reason.

sveri 2015-06-11T14:54:00.000834Z

Uhm, eclipse anyone?

chris 2015-06-11T16:41:40.000839Z

intellij is great for java

chris 2015-06-11T16:41:59.000840Z

way less a pain than eclipse (for me anyways)

chris 2015-06-11T16:42:14.000841Z

++spacemacs for clj though

chris 2015-06-11T16:42:34.000842Z

still use :vim: for editing pom files and stuff though

akiva 2015-06-11T16:47:20.000843Z

I’m with @chris. If I’m shelled in somewhere and I need to quickly edit files, I go for vim. But if I’m local and I’ve Spacemacs up, I practically live in there. Org mode and the like.

aaronm 2015-06-11T16:54:08.000844Z

my experience with eclipse involved a lot of frustration and crashes; IntelliJ seemed better for me.

davs 2015-06-11T17:18:46.000846Z

Hi! Ppl if you are using vim for clj editing how do you move between/inside s-exp-es? What plugins/tricks are there to easily edit clj code? inserting at the beginning/end of s-exp, moving inside/outside s-exp-es etc? Thanks.

gjnoonan 2015-06-11T17:23:21.000847Z

@akiva i need to try and start to use org mode more, since it was one of the reasons that swayed me!

akiva 2015-06-11T17:31:02.000850Z

One of my plans is to one day write a better Org mode client for iOS. That’s all that’s stopping me from dropping OmniFocus as my todo manager.

davs 2015-06-11T17:34:51.000851Z

Thanks, I'm looking at vim-sexp and it looks promising. I've read that emacs is better for clojure editing. Why is that?

davs 2015-06-11T17:35:21.000852Z

Neovim has already terminal integration, although the tools are maybe not very good yet

canweriotnow 2015-06-11T17:40:21.000854Z

@davs emacs is a lisp interpreter, so it's very natural to extend it for Clojure. Also, CIDER provides a direct connection between the editor buffer and running code... Emacs has a learning curve but we'll worth it.

canweriotnow 2015-06-11T17:40:35.000855Z


aaronm 2015-06-11T17:43:37.000856Z

emacs is built on lisp, so it has a long history of strong lisp tooling. vim has come a long way toward catching up, though.

aaronm 2015-06-11T17:44:56.000857Z

it can talk to nrepl using a package called fireplace, for example

canweriotnow 2015-06-11T18:23:28.000858Z

It really just comes down to personal preference, except that if your personal preference happens not to be Emacs, it’s wrong.

canweriotnow 2015-06-11T18:23:57.000859Z


sveri 2015-06-11T18:40:58.000860Z

Ha ha, you mixed up cursive with emacs

arrdem 2015-06-11T18:41:25.000861Z

Java IDEs considered acceptable emacsen


emacsen without emacsy

gjnoonan 2015-06-11T18:45:54.000863Z

I think we should all use Notepad/TextEdit/thelike to be fair 😜

arrdem 2015-06-11T18:51:07.000865Z

given that we have tooling like cursive capable of relatively powerful automated refactorings I’d challenge you to defend that position 😛

markstang 2015-06-11T19:05:01.000867Z


akiva 2015-06-11T19:10:57.000868Z

Punch. Cards.

akiva 2015-06-11T19:11:03.000869Z

[drops mic, strolls away]

arrdem 2015-06-11T19:12:45.000870Z


arrdem 2015-06-11T19:13:19.000873Z

dis gon b gud

markstang 2015-06-11T19:17:32.000874Z

COSMAC 1802 Elf, Hex Keyboard, 256 Bytes of RAM

aaronm 2015-06-11T19:19:23.000875Z

@akiva: my father’s a programmer, I used to get “back in my day” stories about punch cards 😉

markstang 2015-06-11T19:20:07.000876Z

Learned pascal on punch cards, try indenting a procedure...

akiva 2015-06-11T19:20:35.000877Z

Hah, yeah, I’ve never had to do it. I got my start in BASIC and 6502 assembly language.

gjnoonan 2015-06-11T19:21:30.000879Z

6502 was a nice chip

markstang 2015-06-11T19:21:45.000880Z

Apple IIe plug z80?

akiva 2015-06-11T19:22:13.000881Z

Commodore 64.

akiva 2015-06-11T19:22:20.000882Z

Although I had one of those too.

gjnoonan 2015-06-11T19:23:17.000884Z

c64 is my al time favourite computer. Well tied with an Amiga 500

gjnoonan 2015-06-11T19:23:17.000885Z

man those were the days

akiva 2015-06-11T19:23:44.000886Z

Heck yeah. Built a career out of it.

markstang 2015-06-11T19:24:43.000887Z


akiva 2015-06-11T19:26:26.000888Z


akiva 2015-06-11T19:26:29.000889Z

[drops mic again]

akiva 2015-06-11T19:26:53.000890Z

I do not miss the day when OSs came on 50 floppy disks.

gjnoonan 2015-06-11T19:28:32.000891Z

I always found it herapeutic changing the disks, and it was a great sense of accomplishment

markstang 2015-06-11T19:28:50.000892Z

OS/2 with Presentation Manager @ Microsoft University, just sayin - oh the irony

akiva 2015-06-11T19:31:20.000894Z

@gjnoonan: Probably in the same way it felt almost Zen-like watching a defrag.

aghecht 2015-06-11T19:32:50.000895Z

@aaronm: 20 years ago I worked with someone who used ed. The scary/strange part was that he was as fast with ed as most people were with vi.

aaronm 2015-06-11T19:34:49.000896Z

well, vi was originally just a screen interface for ex, which was a fork of ed; I suppose if you’re really used to it...

gjnoonan 2015-06-11T20:09:00.000898Z

using spacemacs I am trying to make

(global-set-key (kbd "M-3") '(lambda () (interactive) (insert "#")))
work but to no avail, have put it in my config layer, and also eval’d it in the scratch

gjnoonan 2015-06-11T20:09:03.000899Z

any ideas?

chris 2015-06-11T20:22:38.000901Z

I dunno, this works fine if you bind it to another key (^3 works fine), but it doesn’t want to let me rebind meta

aaronm 2015-06-11T20:25:14.000902Z

it’s being overridden by window-numbering-mode, but I don’t know enough about emacs yet to diagnose how to fix that

chris 2015-06-11T20:26:07.000905Z

good call @aaronm

chris 2015-06-11T20:26:29.000907Z

disabling window-numbering-mode fixes it

aaronm 2015-06-11T20:29:09.000908Z

or, figured this out: if you want to keep window-numbering-mode working except for that one key,

(define-key window-numbering-keymap (kbd "M-3") '(lambda () (interactive) (insert "#")))

aaronm 2015-06-11T20:29:52.000910Z

but it adds the key definition to the mode’s keymap instead of trying to bind it globally

arrdem 2015-06-11T20:31:18.000911Z

aaronm: you need to tripple tick multi line pastes.

aaronm 2015-06-11T20:31:30.000912Z

didn’t think there was a newline in it 😉

arrdem 2015-06-11T20:31:32.000913Z

aaronm: single ticks only work for pastes without newline

arrdem 2015-06-11T20:31:46.000914Z

if you up arrow promptly you can edit for ~3min

aaronm 2015-06-11T20:31:54.000915Z

oh cool, thanks. new at slack.

arrdem 2015-06-11T20:31:55.000916Z

but only your last message [ this is edit text ]


@arrdem: Eh? If you hover to upper right of your messages, you'll see gear. click it and you can choose edit. Don't think there is any time limit.


Can also delete messages

aaronm 2015-06-11T20:33:53.000921Z

apparently so

arrdem 2015-06-11T20:34:12.000923Z

oh neat I didn’t see that… but there is definitely a lockout time at least in the other slacks I’m on

aaronm 2015-06-11T20:34:44.000924Z

it can be set at the team level, apparently

gjnoonan 2015-06-11T20:51:28.000926Z

Thanks guys, will just disable the mode as I never use it