lang/org: remove unnecessary toc-org advice
It was initially written to avoid the cursor hopping about the buffer when regenerating the table of contents. This isn't really an issue anymore. Although, I would like to prevent emacs from adding adding an undo step when it is regenerated...
This commit is contained in:
parent
29f6db6ead
commit
7e3849be67
1 changed files with 1 additions and 6 deletions
|
@ -878,12 +878,7 @@ compelling reason, so..."
|
||||||
|
|
||||||
;;; Packages
|
;;; Packages
|
||||||
(after! toc-org
|
(after! toc-org
|
||||||
(setq toc-org-hrefify-default "gh")
|
(setq toc-org-hrefify-default "gh"))
|
||||||
(defadvice! +org--unfold-toc-a (&rest _)
|
|
||||||
:before #'toc-org-insert-toc
|
|
||||||
(save-excursion
|
|
||||||
(when (re-search-forward toc-org-toc-org-regexp (point-max) t)
|
|
||||||
(+org/open-fold)))))
|
|
||||||
|
|
||||||
(use-package! org-pdfview
|
(use-package! org-pdfview
|
||||||
:when (featurep! :tools pdf)
|
:when (featurep! :tools pdf)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue