Don't increase gc-cons-threshold in org-mode

This was likely unnecessary and may be the cause of recent reports of
slowness/freezing over time.
This commit is contained in:
Henrik Lissner 2020-12-14 01:11:45 -05:00
parent d69d245778
commit 5827985085
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -541,12 +541,6 @@ the exported output (i.e. formatters)."
:before-while #'org-fix-tags-on-the-fly
org-auto-align-tags)
;; HACK Org is known to use a lot of unicode symbols (and large org files tend
;; to be especially memory hungry). Compounded with
;; `inhibit-compacting-font-caches' being non-nil, org needs more memory
;; to be performant.
(setq-hook! 'org-mode-hook gcmh-high-cons-threshold (* 2 gcmh-high-cons-threshold))
(defadvice! +org--recenter-after-follow-link-a (&rest _args)
"Recenter after following a link, but only internal or file links."
:after '(org-footnote-action