Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion toc-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ the TOC links (even if the style is different from org)."
:type 'boolean
:group 'toc-org)

(defcustom toc-org-insert-silently nil
"If non-nil, hide body of the table of contents after inserting
new contents."
:type 'boolean
:group 'toc-org)

(defvar-local toc-org-hrefify-hash nil
"Buffer local hash-table that is used to enable links
opening. The keys are hrefified headings, the values are original
Expand Down Expand Up @@ -444,7 +450,8 @@ not :noexport_#:."
(buffer-substring-no-properties beg end)
new-toc)
(delete-region beg end)
(insert new-toc)))))
(insert new-toc)
(if toc-org-insert-silently (outline-hide-entry))))))
(message (concat "Hrefify function " hrefify-string " is not found"))))))))

(defun toc-org-follow-markdown-link ()
Expand Down