How to defer buffer in ESS?

ESS allows us to step back from line and expression. Is there a key binding for padding in the buffer? If not, can we create it?

+3
source share
2 answers

As pointed out by others, you can mark the entire buffer C-x h, and then indent the area withC-M-\

You can also put something along these lines in a file .emacs:

(defun my-indent-buffer()
  (interactive)
  (save-excursion
    (indent-region (point-min) (point-max))))

(global-set-key "\C-cib" 'my-indent-buffer)

It makes sense to remember your point.

+7
source

Not sure about the buffer, but you can mark a region and then use C-M-\it.

+6
source

Source: https://habr.com/ru/post/1747461/


All Articles