I use org-mode with emacs heavily. On LINUX, everything is great.
When I have to use windows emacs regularly freezes and I have to kill via task manager and restart.
Any suggestions on how I can debug this? Or better yet how to stop it?
Thanks.
I use org-mode with emacs heavily. On LINUX, everything is great.
When I have to use windows emacs regularly freezes and I have to kill via task manager and restart.
Any suggestions on how I can debug this? Or better yet how to stop it?
Thanks.
Have you tried using (setq debug-on-error t)
on your init.el
. Or even M-x toggle-debug-on-error
.
Also, if I'm not mistaken you can start emacs with the flag --debug-init
.
Maybe one of those options with help you understand whats going on. There are a log of problems that at first glance don't seem to cause problems... till they do.
Also you could disabled packages that you might not need at the moment, to help you increase the changes of finding the problem.
Is it possible you have a really long line?
See How do I prevent extremely long lines making Emacs slow?
I was running org mode with executable source code via babel and one of the default results type puts all the results on one huge line and my emacs was unresponsive to C-g
or ESC
to the extent I was always killing the process.
C-x =
(what-cursor-position) says column=386996
Emacs 27 now has so-long-mode
included by default. Turning that one instantly showed me the problem.
You can enable that globally via (global-so-long-mode 1)
(see So Long docs).
This will drop you out of the major mode into so-long-mode
giving you a chance to fix the long lines before switching back to the the original mode.