This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-23
Channels
- # admin-announcements (24)
- # alda (1)
- # aws (10)
- # beginners (15)
- # boot (51)
- # cider (37)
- # clojure (198)
- # clojure-berlin (3)
- # clojure-czech (48)
- # clojure-poland (1)
- # clojure-russia (7)
- # clojure-seattle (1)
- # clojurescript (347)
- # editors (64)
- # emacs (46)
- # hoplon (13)
- # immutant (24)
- # jobs (17)
- # ldnclj (20)
- # ldnproclodo (3)
- # off-topic (8)
- # om (37)
- # onyx (19)
- # re-frame (18)
- # reagent (54)
- # remote-jobs (2)
- # testing (9)
- # yada (1)
- # yleinen (4)
Hey all, does anyone know of a emacs command to format sexps so they’re lined up by columns? So for example, an easy way to transform something like this:
into something like this?
nm, got it working with C-u M-x align-regexp \(\s-+\) 1 1 Y
you probably didn't need to mess with align-regexp
but if it works it works
M-x align
might have done it by default, maybe not. my dev vm isn't open to test.
thanks @redbeardymcgee, align
didn’t work for me (it could be something in my .emacs.d setup though), align
gives me:
looks weird
yeah, maybe something is causing strangeness in my setup then, thanks
perhaps it needed the prefix also
Tried C-u M-x align
and no dice unfortunately 😕
But, the good news is this is working nicely for me:
That’s 20 mins of my life I’ll never get back 😅
… but then again, I’ll probably save > 20 mins not having to manually align things 😉
this sees like the kind of thing some variant of align
would just DWIM
Pretty strange that it doesn't
@upgradingdave: Have you checked out https://github.com/gstamp/align-cljlet
(it works for much more than just ‘let’ forms)
Is there an elegant solution that allows me to have multiple terminals in Emacs? On OSX I frequently run the Emacs.app fullscreen but then have to swipe for my various ‘lein’ processes.
You might be missing my newbie-ness . I did try that but I got an exception about specifying a prefix arg before helm-M-x
@colin.yates: I think we should move it here
having said that, I need to run for tea soon. I will say though, that I didn’t really get yak-shaving until I started with my own config.
@colin.yates: I see what you mean! Have a nice one then
@colin.yates: Well, no idea about helm
So is C-u
idiomatic emacs for ‘more than one’?
(I wasn’t kidding about the newbie…)
It's "non-default": https://www.gnu.org/software/emacs/manual/html_node/elisp/Prefix-Command-Arguments.html
Ugh, this one is more readable: http://www.emacswiki.org/emacs/PrefixArgument
I see - thanks. For my issue, it was yet another RTFM: https://github.com/emacs-helm/helm/wiki#i-have-an-error-message-when-starting-helm-m-x-with-a-prefix-arg
Etc. Many commands interpret it as a "alternative way" of doing things -- often by asking more questions or executing command differently.
thanks again @dottedmag
would people recommend SpaceMacs with the vi emulation for a non-vi user? :wq
and ‘i’ are about the limit of my vi skills , but I hear good things about SpaceMacs+Space leader just from a usability perspective….
i learned a good bit of vim over ~3 years, but i never liked the modal editing