GithubHelp home page GithubHelp logo

Comments (4)

plexus avatar plexus commented on July 28, 2024

Thanks for the report. If this works both before and after that change then I'm happy to merge in a PR.

from chemacs2.

patrolli avatar patrolli commented on July 28, 2024

Recently there's been a change in emacs master branch, 9973019764250ac1f4d77a6b426cdd9c241151c5 ( emacs-mirror/emacs@9973019) where package-user-dir is loaded differently, making it bypass chemacs' directory linking.

c-h v package-user-dir before that commit gives ~/.emacs.default/elpa, but after it, you get ~/.emacs.d/elpa.

I'm still not 100% sure about the proper fix, but as of now this seems to fix it:

modified   chemacs.el
@@ -142,6 +142,7 @@
 (defun chemacs-load-user-init ()
   (when (chemacs-profile-get 'straight-p) (chemacs-load-straight))
   (let ((init-file (expand-file-name "init.el" user-emacs-directory)))
+    (setq package-user-dir (expand-file-name "elpa" user-emacs-directory))
     (load init-file t t)
     ;; Prevent customize from changing ~/.emacs (this file), but if
     ;; init.el has set a value for custom-file then don't touch it.

leaving it as an issue to give it some time

It works. I recently compile emacs28 to replace my old emacs27. I found when I enter emacs28 it will download packages automatically to the path "/.emacs.d" instead of loading from "/.emacs.default". I add this sentence in chemacs.el and emacs28 load the package dir correctly.

from chemacs2.

plexus avatar plexus commented on July 28, 2024

@patrolli did you also try it out with the change on emacs 27?

@kidd or @patrolli would you mind making a PR for this?

from chemacs2.

kidd avatar kidd commented on July 28, 2024

sure! I'll prepare the PR later today, 👍

from chemacs2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.