The function `outshine-cycle` (part of [Outshine][1]) calls the function `indent-relative`. I would like that instead, it called the function `indent-for-tab-command`. To do this, I want to advise the function `outshine-cycle`. I imagine this could look like the following (which is not working): (defun my-indent (orig-fun &rest args) (cl-flet ((indent-relative () (indent-for-tab-command))))) (advice-add 'outshine-cycle :around #'my-indent) Any ideas? [1]: https://github.com/alphapapa/outshine