I'm in org-mode and would like to have
C-c C-c ' run
org-edit-special to get back out again. I've tried
(defun my-run-org-babel-codeblock-format () "Run org babel codeblock formatting in sequence." (interactive) (org-edit-special) (mark-whole-buffer) (indent-region)) (global-set-key (kbd "C-c C-'") 'my-run-org-babel-codeblock-format)
but this doesn't work:
my-run-org-babel-codeblock-format: Wrong number of arguments: (2 . 3), 0
Apparently multiple means no more than two commands. That is, when I remove
(indent-region) it seems to work. Is there something I can do to have all four commands under one key binding?