Emacs cookbook

Ordering JSON by key value

Run json-pretty-print-buffer-ordered[^spacemacslayer]

[^spacemacslayer] If using spacemacs, it requires the Javascript layer


Creating a projectile project

To create a projectile project either use a valid Git repository or create the special .projectile file in root.

Do a SPC p f, but make sure the projectile project is created.

Split screen

The standard Emacs keys are valid here (even for Spacemacs).

  • SPC w h

Indent a block of text

Select the block with V and then press Ctrl-x TAB. Then use h or l to move it along