emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
2020-04-16T20:12:22.079Z

just discoverd lispy-mode for emacs, it's just amazing compared to paredit (though the two can work together)

2020-04-16T20:14:11.080500Z

anyone here using lispy-mode with clojure?

➕ 1
2020-04-16T20:15:12.081300Z

I'm using emacs doom configuration, just switched from paredit to lispy

2020-04-16T20:16:54.082300Z

however [ and ] are used for navigating so I can't type brackets with them directly

2020-04-16T20:24:12.082800Z

not sure how do people handle that

2020-04-16T20:24:43.083200Z

bind some key to lispy-open-square???

dpsutton 2020-04-16T20:29:29.083500Z

i abandoned lispy years ago because of that

Cameron 2020-04-16T21:19:43.084900Z

@myguidingstar by default you'll want to insert brackets by hitting }

2020-04-17T07:31:41.109500Z

exactly what I'm looking for. Thanks

dpsutton 2020-04-16T21:31:25.085400Z

? how would you enter curly and straight brackets?

2020-04-16T22:29:43.086800Z

I just use adjust-parens-mode + aggressive-indent-mode + smartparens

2020-04-16T22:29:55.087100Z

Best combo I've ever tried

2020-04-16T22:31:08.088300Z

And I have custom bindings for most things. So I use M-left/right/up/down for navigating s-expressions

ag 2020-04-16T22:34:44.088400Z

You can always press C-v and type a bracket symbol

Cameron 2020-04-16T23:01:33.103200Z

} inserts [] , { inserts {} . Because lispy itself manages brackets (such that they're always balanced), you only need a command for starting a new pair, not for individually typing in { and }, or [ and ] . Its another thing that takes getting used to, and it mainly becomes painful when you operate on the file in some way that lispy is not managing that allows brackets to become unbalanced (which usually means 1. opening a file with already unbalanced parentheses 2. manually deleting a parentheses. Normally this will not happen, as if you normally go to delete a parentheses, its still being managed by lispy, and it will balance the parentheses by deleting the entire form, or if you just mean to remove a pair of parentheses and not the contents (basically splicing the form into its outer form), it will likewise handle that. If your intention is even to move the parentheses, you'll just slurp or barf with lispy as needed. But if you, say, highlight something and hit Cntrl-D, you are manually deleting something from outside the lispy abstraction layer, and can end up disturbing the balance of the force parentheses 3. Pasting in something that is unbalanced, or pasting in something in a way that partially erases something else and unbalances brackets / parentheses / whatever). Of course, in a scenario like that you just end up disabling lispy, fixing the parentheses, and re-enabling it, and over time you learn to disturb parentheses less. But it is kind of annoying as you adjust, and I do wonder myself is there's some quicker way to manually modify parentheses without restarting lispy (or without, say, calling something like`(insert ")")` from elisp, which I also do sometimes)

dpsutton 2020-04-16T23:28:45.103600Z

Ohh cool