doomemacs / doomemacs/core

pretty overrides doom's default and sets org-highlight-latex-and-related to (native script entities)

Open
#6,278 2 comments 1 reaction 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

I was expecting low CPU use and no latency when typing and deleting characters on large files in org-mode, thanks in part to doom's default setting of `org-highlight-latex-and-related` to `nil`, as described in #2998.

### What actually happened?

- Typing and deleting characters had high latency and CPU use was high on large files in org-mode since ~yesterday's `doom upgrade`
- `org-highlight-latex-and-related` was set to `(native script entities)`

### Describe your attempts to resolve the issue

1. After running profiler, I was able to attribute most of the CPU use to `org-do-latex-and-related`.
2. I found that `org-highlight-latex-and-related` was set to `(native script entities)`, instead of `nil`, which is doom's default`.
3. I verified that the CPU use went back to normal after adding `(after! org (setq org-highlight-latex-and-related nil))` to `config.el`.
4. I verified that my `config.el` was not to blame by running Doom Emacs with my config commented out.
5. I verified that the default was being overridden by `pretty` by commenting out `+pretty` in `init.el` and checking that `org-highlight-latex-and-related` was back to `nil`.

### Steps to reproduce

1. Open large file in org-mode
2. Type and delete characters

### System Information

https://pastebin.com/g5Pq3Vz8

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.