Rudolf Adamkovič Personal site


Custom header line

Show help à la org-edit-src-code in Org.

(defun my-edit-indirect-prepare ()
  (setq header-line-format
        (substitute-command-keys
         "Edit, then exit with `\\[edit-indirect-commit]' or abort with \
`\\[edit-indirect-abort]'")))
(with-eval-after-load 'edit-indirect
  (add-hook 'edit-indirect-after-creation-hook
            #'my-edit-indirect-prepare))

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.