5 ms·
I'd love to see a couple of screencasts of people effectively using these. I use spacemacs in evil mode, but I find smartparens infuriating. I don't know if thi
by Y_Y 8y ago
I'd love to see a couple of screencasts of people effectively using these. I use spacemacs in evil mode, but I find smartparens infuriating. I don't know if this is because it doesn't suit me, or it's just no good, or if (most likely) I don't know how it's supposed to be used and haven't learnt the keys.
Any advice on getting off the ground for sexp editing (racket mostly) in a modern semantic way would be greatly appreciated.
- xj9 8y agomy favorite sexp editing algo is parinfer, but afaik it hasn't been ported to emacs yet and definitely not packaged for spacemacs. i was first exposed to parinfer when i was playing around with light table, which is where i always end up if i'm spending a lot of time writing lisp/scheme
- another-cuppa 8y agoThere is at least one implementation of parinfer for emacs by now.
- another-cuppa 8y agoJohn Wiegly's talk on elisp hacking includes a bit: https://youtu.be/RvPFZL6NJNQ https://youtu.be/RvPFZL6NJNQ It's unfortunately a low quality recording but if you can stand it it's a treasure trove of tips for doing elisp.
- starkingclojure 8y agoI wouldn't say I have impressive smartparens skills, but I do definitely use sp bindings all the time. What helped (or made it possible at all?) is I made my super key (right alt for me) the smartparens key. So say s-n is sp-forward-symbol, s-c is sp-clone-sexp and so on. From there on it mostly just takes time. Some will stick, some won't. I remember thinking "barf, slurp sexp, WHAT?". Now I think "too bad barfing is broken in js2...".
- joeberon 8y agoI am new to common lisp but I've never had any problems using paredit with barfing and slurping
- ilikehurdles 8y agoI wish spacemacs would release with parinfer integration. Paredit feels clunky, error-prone, and awkward after getting used to parinfer on atom.
- IronBacon 8y agoI use Paredit on Emacs and I'm ashamed to say that I basically only remember the "slurping" and "barfing", maybe some "splicing" unless I have the cheat sheet at hand, but usually they are enough to quickly manipulate a sexp. If you haven't seen it before, the EmacsRocks series on YouTube has a short episode on Paredit.
- Jach 8y agoWhile Clojure isn't Common Lisp, anecdotally one Clojure-using company told me their most productive engineer uses vim... (They have a mix of editors there, not just vim or emacs. But as a vim-head that made me smile.) I agree with you on the smartparens types of tools being a mismatch of how I work, I just want to type. But I still sometimes wonder if I paired with someone using spacemacs or emacs+evil mode expertly whether my eyes would open... I've used both, don't like them over regular vim, even though being able to click on CL objects to inspect them is kind of nice except I can also just use ,i in slimv for a bound item so... There are several videos of people using emacs, but I agree it'd be cool to see videos of the old Lisp Machines in action for productive work rather than demoing things...
- alexhutcheson 8y agosmartparens > paredit https://github.com/Fuco1/smartparens https://github.com/Fuco1/smartparens
- soegaard 8y agoGreg Hendershott's `racket-mode` for Emacs is the best to work with Racket in Emacs. The reference manual is here: https://github.com/greghendershott/racket-mode/blob/master/Reference.md https://github.com/greghendershott/racket-mode/blob/master/R... It supports both `paredit` and `smartparens` see more about this in the Readme. https://github.com/greghendershott/racket-mode/blob/1b78827d310b6d655782b7bba0f2360c9ef34ff6/README.md https://github.com/greghendershott/racket-mode/blob/1b78827d...