Closed trev-dev closed 2 years ago
Hi,
Thanks for the offer, but that isn't generally the idiomatic way to do this in Emacs. Rather, one should use a file-local or directory-local variable to activate the mode in the desired files. For example, M-x add-file-local-variable RET eval RET org-make-toc-mode RET
. Or one could add org-make-toc
to the file's before-save-hook
by the same method.
If a user really prefers to maintain a list of such files in his configuration, that would best be handled by bespoke code in the user's configuration rather than as part of this package.
Sounds good to me.
This merge request includes the commits required to add a convenience feature feature that will allow a user to:
buffer-file-name
is in the custom listI've been using this feature in my init for a while now and have not had any issues, and thought perhaps you might like it.