Code blocks are not decoupled
justinekizhak opened this issue · 1 comments
Describe the bug
The Garbage Collect When Emacs is Out of Focus
and
Avoid Garbage Collect When Using Minibuffer
code blocks are not decoupled from each other.
The first block is missing 2 closing parentheses and the second block has 2 additional closing parentheses.
My understanding is that the lower block is supposed to be inside emacs-startup-hook
.
But if someone copies just the lower or just the upper block they will face syntax error.
Code blocks in question:
Expected behavior
User can copy either of the code blocks and doesn't have double-check if all the required parenthesis are present or not.
Possible solutions
- Combine both code blocks or
- Mention that both the code blocks should be copied and pasted in the same order or
- Add closing parenthesis to the first block and put the second block inside the hook
Thanks for letting me know, I thought separating these two will be clearer. This is fixed now.