Fork me on GitHub
#spacemacs
<
2017-09-22
>
eggsyntax13:09:49

@alexkeyes often what I do to find functionality that I need is enter helm command search (`M-x`, or I think SPC : by default, not sure, I’ve got it rebound) and just start typing keywords like <cider close> and variants. More often than not I find the command that does what I want.

vuuvi13:09:25

great advice man! thanks for it.

vuuvi21:09:38

is there a way for emacs to un-prettify a JSON document? I want eliminate all the whitespace and new rows

vuuvi21:09:26

nvm I just figured it out - did a M-x fill region, then a search and replace all new lines with nothing

ag21:09:39

@alexkeyes to eliminate line endings and get everything into a single line you can: a) select region, press g J 2) use ex-command: press :, then type s/C-q C-j//g

vuuvi21:09:22

by ex-command you mean M-x right?

ag22:09:41

Vimmers are familiar with that feature, you can do a lot using it. Emacs has adopted some of the ex-commands, not all - but just enough to become dangerous (once you learn them)

ag22:09:22

here's the list of all ex-commands available in Spacemacs https://gist.github.com/agzam/acd3b5e311f8f7e87e21b550856f65e1

ag22:09:42

some layers e.g. Ruby may also add their own ex-commands