I am using straight.el for managing my packages. However, due to GitHub access issues, the bootstrap snippet can not be downloaded successfully and run. After staring Emacs, it hangs forever with high CPU usage.

Here is what is working for me. After following these steps, I can install packages without issue.

Here is what works for me:

  1. Go to ~/.emacs.d, the directory varies based on your system1.
  2. Clone the straight.el repo:
git clone https://github.com/raxod502/straight.el.git  straight/repos/straight.el
  1. Change the git default url using the following command as per guide here.
git config --global url."https://hub.fastgit.org/".insteadOf "https://github.com/"
git config protocol.https.allow always
  1. Remove the straight.el bootstrap snippet from init.el.

Restart Emacs and just wait. All my packages are installed and build successfully.

References


  1. Check here for the actual path. ↩︎