spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
zane 2020-11-11T00:05:23.140900Z

These might help you get where you’re going:

zane 2020-11-11T00:05:29.141400Z

https://docs.cider.mx/cider/indent_spec.html

2020-11-11T09:03:47.144200Z

Does anyone else notice that Emacs hangs when using Spacemacs? Since I moved my emacs config to Spacemacs, I find that, quite often, the whole of Emacs will hang and become so unresponsive that I have to kill it. I’ve never experienced anything like this with Emacs before but am a bit of a noob when it comes to debugging Emacs problems so have no idea where to start. I’m on Emacs version 27.1 (9.0) from https://emacsformacosx.com/ and the Spacemacs develop branch (commit ab52131d9 if anyone’s interested).

Gleb Posobin 2020-11-12T17:23:30.147800Z

I've been having problems with both spacemacs and doom Emacs when running clojure: it would hang up every day or so at random point, the screen would not refresh but interestingly the window title would change when I pressed keys to switch buffers. The only option would be to kill it. I switched to this Emacs a week ago, haven't had a problem yet: https://github.com/railwaycat/homebrew-emacsmacport Plus Emacs seems more responsive now.

👍 1
2020-11-12T19:22:20.148200Z

I should add that I used to use a base emacs from https://emacsformacosx.com/ with tools like clojure cider, etc added from melpa and a very small amount of customisation. It didn’t look pretty but worked ok. But I do like spacemacs (and prefer it to what I had before) and would like to debug and fix whatever causes it to hang so I can keep using it.

2020-11-12T19:23:11.148400Z

Gleb, do I understand correctly that you’re now using Spacemacs on top of homebrew-emacsport and that it works ok? I’ll give that a try if so.

Gleb Posobin 2020-11-12T19:23:39.148600Z

I am using Doom, but it was misbehaving in the same way as spacemacs.

Gleb Posobin 2020-11-12T19:24:21.148800Z

Otherwise yes, it has been working ok for the past week.

zane 2020-11-12T22:36:51.149Z

@posobin Might be this issue? https://github.com/d12frosted/homebrew-emacs-plus/issues/137

Gleb Posobin 2020-11-12T23:00:08.149300Z

@zane Maybe, but they seem to be talking about glitches, not a complete freeze I experienced.

✅ 2
2020-11-13T09:13:30.149700Z

Yeah same here, it’s a complete freeze that I keep getting 😿

spfeiffer 2020-11-11T09:21:34.144300Z

No, absolutely not. No such problems here (but Linux, not Mac).

murtaza52 2020-11-11T09:58:23.144500Z

I was having the problem. mostly when my memory got used up. now I dont know if its connected, but lately I have been using practicalli's spacemacs config, and it has been a much more smoother experience. so lately no hangups, I think its a combination of the spacemacs config, and also much less resources being consumed.

2020-11-11T10:38:18.144900Z

Does emacs do anything special with memory (like does it have a maximum heap size like the JVM or anything weird like that)? I’ve got 16 gig in this laptop and I’m not expecting to be low on total available memory.

2020-11-11T10:38:38.145100Z

Anyhoo I guess I can give Practicalli’s config a go at some point and see if I get different behaviour.

murtaza52 2020-11-11T10:41:39.145300Z

I dont think it was emacs that was consuming memory. just the projects I was working on had a large memory footprint. so when the system memory ran low, emacs became unresponsive. also in general I had found out of box spacemacs to be a bit sluggish at times. I have not had that problem with the new config.

practicalli-john 2020-11-11T11:12:48.145600Z

Profiling is straightforward in Spacemacs https://practicalli.github.io/spacemacs/install-spacemacs/troubleshooting.html#profiling-emacs Understanding the results may take some time. Starting with a default Spacemacs setup is useful to see if there are any issues. I haven't experienced any issues with my configuration either, except on a few nightly builds of Emacs 28, but that is to be expected.

practicalli-john 2020-11-11T11:14:08.145800Z

I've seen some people have performance issues with Mac and Emacs, so may be another aspect to search on for help.

zane 2020-11-11T19:06:02.146Z

@cdpjenkins Do you happen to use posframe? I was experiencing lockups when I entered certain key combinations for a while, and I think posframe was somehow the culprit.

2020-11-11T19:10:31.146200Z

I’d not heard of posframe before but it appears that it has been installed in my emacs at some point (package-list-packages shows it as deleted which seems suspicious to me).