org-make-toc icon indicating copy to clipboard operation
org-make-toc copied to clipboard

Fix the issue of before-save-hook being added globally

Open akirak opened this issue 2 years ago • 0 comments

When you enable org-make-toc-mode, org-make-toc is added to before-save-hook globally, and the following message is printed every time if you save a buffer, even if the buffer is not in org-mode:

org-make-toc: No TOC node found.

This PR fixes the issue.

akirak avatar Aug 13 '22 09:08 akirak