Spacemacs now has rectangle functions in master! No need for a special layer.
This layer provides Spacemacs keybindings to Emacs’ brilliant but unkeybound rectangle manipulation functions
| Key Binding | Description |
|---|---|
| SPC [i | string-insert-rectangle |
| SPC [s | string-rectangle |
| SPC [m | rectangle-mark-mode |
| SPC [e | rectangle-exchange-point-and-mark |
| SPC [n | rectangle-next-line |
| SPC [p | rectangle-previous-line |
| SPC [N | rectangle-previous-line |
| SPC [r | rectangle-right-char |
| SPC [l | rectangle-left-char |
| SPC [v | rectangle-preview |
| SPC [c | rectangle-number-lines |
| SPC [k | kill-rectangle |
| SPC [y | yank-rectangle |
| SPC [o | open-rectangle |
| SPC [! | clear-rectangle |
| SPC [c | close-rectangle |
| SPC [d | delete-rectangle |
To use this configuration layer, add it to your ~/.spacemacs. You will need to
add rectangle to the existing dotspacemacs-configuration-layers list in this
file.
This code does not play nice with Emacs Lisp or Spacemacs conventions. Pull requests appreciated. If you write your own skeleton, and it is decently conservative for that language/file type, send it!
