This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-03
Channels
- # aws (1)
- # bangalore-clj (3)
- # beginners (3)
- # boot (9)
- # business (1)
- # cljs-dev (72)
- # cljsjs (7)
- # clojure (86)
- # clojure-austin (1)
- # clojure-belgium (4)
- # clojure-brasil (14)
- # clojure-conj (3)
- # clojure-dev (10)
- # clojure-italy (4)
- # clojure-poland (14)
- # clojure-russia (36)
- # clojure-spec (144)
- # clojure-uk (50)
- # clojurebridge (1)
- # clojurescript (160)
- # clr (2)
- # core-async (8)
- # cursive (56)
- # datomic (34)
- # devcards (3)
- # emacs (2)
- # ethereum (1)
- # events (3)
- # hoplon (21)
- # jobs (2)
- # leiningen (9)
- # luminus (3)
- # off-topic (1)
- # om (26)
- # onyx (42)
- # pedestal (29)
- # protorepl (1)
- # re-frame (43)
- # reagent (26)
- # rethinkdb (4)
- # ring-swagger (4)
- # spacemacs (5)
- # specter (4)
- # untangled (102)
- # vim (43)
- # yada (10)
I run lein repls outside of a project.. I have to connect manually, but it otherwise works.
does anyone have a script / plugin that can automatically refactor clojure code on save? in emacs, i had a snippet that would ‘clean’ the buffer everytime it saved - basically remove trailing whitespace, and clj-refactor forms
autocmd FileType clj,cljs,clojure autocmd BufWritePre <buffer> :%s/\s\+$//e just expand with a call to clj-refactor ..
autocmd FileType clj,cljs,clojure autocmd BufWritePre <buffer> :CCleanNS
might work, if you're using nvim refactor
oh, wow, that is so elegant!
my lisp fn was so big
thank you guys
vim vs emacs on this stuff is sorta a pro/con thing. For anything large, I'd guess emacs would win on maintainability because everything is a function, and elisp and all that.
nnoremap X diw
I already know diw
, and I want a quicker way to do it. Elisp as I understand is all about finding the corresponding function(s) that underly your keys, and adding a hook somewhere.
yeah, i totally agree. Emacs has some nice ideas, but i found it a bit clunky and i really did not like the shortcuts. i did not like them cause they were just that - shortcuts. Vim shortcuts make sense, like diw
- delete inner word. and cause i know
d` is delete, i can add any motion to that. so knowing the simple parts, builds up to larger and complex parts
also the .
form is amazing
vim-repeat
makes it better, although I've gotten by without it pretty well. Worth checking out though I think.
https://github.com/tpope/vim-repeat maybe I should install it and use it more
I will add, that I don't think vimscript scales to complex activities all that well. It's an amazing feat some of the things vim plugin authors pull off.
The answer is almost certainly yes but I’ll ask anyway, have you seen timl - https://github.com/tpope/timl
Yeah, it was when I tried it as well.
Neovim is going to compile viml down to lua eventually. For a 10x speed boost or something crazy. So that should bring timl up to viml speeds?
I've been super happy with the plugin power of neovim + cljs - just super frustrated that some upstream dependency breaks my plugins every month or so.
which probably means it's time to work with @jebberjeb to get a full stack cljs neovim-host
I want to see a semantic highlighter for Clojure. I won't be happy now until we have something better than Emacs 😄
https://github.com/clojure-vim it would be good to try do it here.
Fundamentally, it's https://github.com/neovim/node-host/blob/master/plugin/js_host.vim and https://github.com/neovim/node-host/blob/master/autoload/js_host.vim
@dominicm I should separate one of the plugin samples from the actual plugin host project. After that I think moving it over to clojure-vim makes sense.
@jebberjeb I invited you to the group