this post was submitted on 16 Jul 2023
5 points (85.7% liked)
Emacs
2256 readers
1 users here now
Our infinitely powerful editor.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I tried it but still no joy...
Looking at this issue I noticed 3 things that may help to pinpoint the origin...:
(setq-default major-mode 'org-mode)
was(setq default-major-mode 'org-mode)
. Both expressions seems indistinguishable in the resulted behavior.org-roam
mode (andread-only
mode), which is very strange, but can obviously be related and/or part of the problem. The org-roam section (my config is literate in org-mode) comes before this variables being set.What does this info may imply?
Okay, I could reproduce your situation by evaluating
This setup forces the scratch buffer to be in org-mode, apparently breaking most of the available keybindings for it, including the undo.
The value for the
initial-major-mode
should be kept aslisp-interaction-mode
, if your configuration requires to set it.Otherwise I would remove both of these lines all together and see if the default behavior brings back the scratch buffer to be in the expected
lisp-interaction-mode
again. The additional hook I provided in my previous post shouldn't be needed either.