snosov1 / toc-org

toc-org is an Emacs utility to have an up-to-date table of contents in the org files without exporting (useful primarily for readme files on GitHub)
GNU General Public License v3.0
287 stars 29 forks source link

Extend to derived modes #45

Closed csantosb closed 6 years ago

csantosb commented 6 years ago

Would it be interesting using this package for modes beyond org ? I mean using

(derived-mode-p major-mode 'org-mode)

instead of

(eq major-mode 'org-mode)

This would be interesting for myself, sure, but I guess that for others too. I don't see a problem by proceeding this way as this only generalizes its use. What do you think ?

snosov1 commented 6 years ago

Makes sense to me!

Out of curiosity - what derived modes of org do you have in mind?

csantosb commented 6 years ago

I wrote a major mode to ease development of vhdl code, here. Among others, I use a derived org mode to implement literate programming and facilitate documentation of my code.