spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
jumar 2020-07-24T11:42:35.135100Z

I'm not sure what happened but suddenly magit key bindings in spacemacs are broken. SPC g s is undefined , etc. I haven't changed anything explicitly - the only thing that happened, I think, since it worked is that my computer ran out of battery and was turned off forcibly.

jumar 2020-07-24T11:53:33.135400Z

I tried to restore my .emacs.d from a backup two weeks ago but when I start emacs it shows "deleting 14 orphan packages" and I was able to see that one of them is evil-magit. Any idea why that happens?

practicalli-john 2020-07-24T11:54:30.135600Z

I would start by checking the commands are still there, SPC SPC magit and see if the commands show the keybindings. If the commands aren't there, then I'd delete the magit packages and restart Emacs

jumar 2020-07-24T11:55:33.135800Z

The commands are there. But also magit-status doesn't work as before (no evil keybindings just standard emacs -> suggesting that evil-magit and possibly other packages are the problem)

jumar 2020-07-24T11:57:51.136100Z

When I try to install evil-magit manually (via package-list-packages) I get this error

Compiling file /Users/jumar/.emacs.d/elpa/develop/evil-magit-20200604.110/evil-magit.el at Fri Jul 24 13:57:14 2020
Entering directory '/Users/jumar/.emacs.d/elpa/develop/evil-magit-20200604.110/'
evil-magit.el:53:1:Error: Key sequence j p starts with non-prefix key j

jumar 2020-07-24T11:59:19.136300Z

It looked as if no magit package was actually installed. I've just installed magit and then tried evil-magit - all other magit related packages are shown as "available" but not "installed" (not sure if that only means there's a new version)

jumar 2020-07-24T12:00:16.136600Z

After this change the emacs startup window shows again "deleting evil-magit"

jumar 2020-07-24T12:00:34.136800Z

And SPC g s still doesn't work

practicalli-john 2020-07-24T12:02:11.137Z

A possible quick hack would be to set dotspacemacs-install-packages 'all in .spacemacs which should keep all packages rather than deleting unused ones. This doesnt fix the underlying problem though.

jumar 2020-07-24T12:03:06.137200Z

What does it mean that a package is "unused"?

jumar 2020-07-24T12:03:56.137400Z

Btw. I ran a rather old version of develop branch and just tried to update to the latest origin/develop. This is what I get during startup now:

practicalli-john 2020-07-24T12:04:10.137900Z

Packages that are not defined in an enabled layer or included in the addtional-packages setting I assume.

jumar 2020-07-24T12:05:29.138100Z

Maybe I should note I'm using Emacs 25.3 on Mac OS X 10.15.6

practicalli-john 2020-07-24T12:06:18.138300Z

Is that the issue with older versions of Emacs? e.g. before 26.3. The RSA key for melpa was updated sometime before Emacs 26.3 and so earlier emacs versions need their key updated.

practicalli-john 2020-07-24T12:06:33.138500Z

Yes, it seems it is....

practicalli-john 2020-07-24T12:07:13.138700Z

When I had a Mac, I used https://emacsformacosx.com/ to install Emacs. Or you can to an internet search on how to update the keys for Emacs 25. Or install a new version of Emacs using the Spacemacs recommendations https://github.com/syl20bnr/spacemacs/tree/develop#emacs

jumar 2020-07-24T13:08:10.139200Z

I ended up downloading new Emacs, switching to the latest develop branch, deleting my .spacemacs file and manually transfering relevant settings from my old .spacemacs file to the new one created by the spacemacs wizard.

practicalli-john 2020-07-24T13:32:11.139400Z

SPC f e D is also useful for comparing your .spacemacs file with the spacemacs.template, opens ediff and j and k step through changes. Or in this case using SPC D f f to select two files to use with ediff

jumar 2020-07-24T14:03:51.139700Z

Thanks for the tip. Btw as a side-effect it seems that the upgrade made my emacs way faster

practicalli-john 2020-07-24T14:28:14.139900Z

I am trying out Emacs 28 at the moment, it seems a little faster too, although probably not as stable as 26.3. Emacs 27 should be out this year as the next stable release.

maleghast 2020-07-24T14:39:50.140700Z

I don't suppose anyone knows if I can update my exec-path through Spacemacs, or if there is any particular Spacemacs way of doing it..?

maleghast 2020-07-24T14:40:05.141Z

(on my last machine it "just worked")

practicalli-john 2020-07-24T14:56:12.142700Z

@maleghast If you are using Spacemacs develop branch, SPC f e e will open your .spacemacs.env file which should be automatically populated from your Operating System when Emacs is started. You can manually add entries to this file too. If new entries for PATH or other environment variables are added after Emacs is running, then add them manually or restart Emacs

maleghast 2020-07-24T14:57:02.142900Z

Thanks @jr0cket

maleghast 2020-07-24T14:57:18.143300Z

How are you doing..?

practicalli-john 2020-07-24T14:57:24.143400Z

Pleasure. Hope all is fine with you

practicalli-john 2020-07-24T14:58:08.143600Z

I am busy bee working on https://practicalli.github.io/ and getting out and about on my bike (although not as much as I should)

practicalli-john 2020-07-24T14:59:14.143800Z

I am going to start my own bank and make loads of money 🙂 https://practicalli.github.io/clojure-webapps/projects/banking-on-clojure/

maleghast 2020-07-24T14:59:17.144Z

Glad to hear you are well 🙂

maleghast 2020-07-24T14:59:46.144200Z

It's been a long time since I've seen anyone from the wider community in the flesh, I haven't seen my own team for a few months either....

maleghast 2020-07-24T14:59:59.144400Z

Not complaining, going full-remote has definitely had its perks

maleghast 2020-07-24T15:00:02.144600Z

😉

maleghast 2020-07-24T15:02:50.144800Z

That sounds like a great idea

maleghast 2020-07-24T15:03:05.145Z

You've heard about Cognitect and NuBank I assume..?

practicalli-john 2020-07-24T15:19:02.145300Z

Yes, I want some of that action :rolling_on_the_floor_laughing:

practicalli-john 2020-07-24T15:20:02.145500Z

Its all for my ever growing books on Clojure. Starting to get them into a much better shape and using lots of deps.edn and Clojure CLI tools.

maleghast 2020-07-24T15:25:57.145700Z

Nice work!

practicalli-john 2020-07-24T15:43:01.145900Z

I am thinking of getting a proper job and moving to Scotland at some point

maleghast 2020-07-24T17:32:37.146200Z

Would be lovely to see you... Things have changed / moved on a lot at Cervest of late, so we are still on mission, but focusign a lot more on disclosure solutions and that kind fo thing for risk / climate risk to asset bases.

maleghast 2020-07-24T17:34:55.146400Z

COVID-19 has made us 100% Remote Friendly, I am 100% Remote now, which does not preclude the idea of maybe quarterly visits to the office starting e/o Q1 next year, so I am quite pleased albeit I am missing having regular access to London theatres and my social life down there...

maleghast 2020-07-24T17:35:08.146600Z

Scotland has a lot to recommend it though 🙂

maleghast 2020-07-24T17:35:16.146800Z

Where would you move to?

practicalli-john 2020-07-24T18:42:54.147Z

Not sure yet, somewhere pretty, which seems to be most of Scotland. Perth and Inverness look interesting, as I could go cycling over the Cairngorms