I am learning Emacs by doing built-in tutorial (C-h t). However, when I decide to take a break and exit the editor (C-x C-c) and then later rerun the tutorial the position when I finished before is not saved. The tutorial starts over from the beginning. Is there a way to save this position so that I do not have to remember where I finished? (Well, maybe the tutorial covers the problem in some place, but I have not yet got to it).

  • 1
    – choroba
    Apr 6, 2019 at 10:06
  • Use C-x k to kill the tutorial buffer when you're done, and it will offer to save your position. (Evidentially this doesn't happen if you exit Emacs entirely with C-x C-c.)
    – phils
    Apr 7, 2019 at 9:14

1 Answer 1


The way you do this by default is to use C-x k to kill the buffer, and then you will be given the option to save your position.

If you want emacs to do the same check when you use C-x C-c then add the following to your .emacs file.


By using:

(advice-add 'help-with-tutorial :override
(defun help-with-tutorial-deals-with-c-x-c-c (...)

it adds the line:

(add-hook 'kill-emacs-query-functions 'tutorial--save-tutorial nil t)

to the function help-with-tutorial, which is now called help-with-tutorial-deals-with-x-s-x-c

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.