Code Monkey home page Code Monkey logo

Comments (3)

redguardtoo avatar redguardtoo commented on August 24, 2024

upgrade to v1.2.2, check README

from elpa-mirror.

agsdot avatar agsdot commented on August 24, 2024

@redguardtoo , thanks for the rapid feedback.

setq elpamr-default-output-directory now works properly. I'm not sure what was happening before, prior to the changes you made -- it doesn't look like much was changed with regards to the code for that, just removal of html generating code.

With regards to the script to run elpa-mirror in the shell, I was thinking that this is a more likely scenario:

emacs --batch -l ~/.emacs.d/init.el -l ~/.emacs.d/elpa/elpa-mirror-*/elpa-mirror.el --eval='(setq elpamr-default-output-directory "~/myelpa")' --eval='(elpamr-create-mirror-for-installed)'

You referenced elpa-mirror.el as being inside ~/projs/elpa-mirror/ -- maybe this is your repo for where you develop the code? Most people would not have elpa-mirror.el within that directory.

Still I wonder, how could one code running the elpamr-create-mirror-for-installed command once a day in emacs, and not use a cron job or shell script? Thanks for your advice.

from elpa-mirror.

agsdot avatar agsdot commented on August 24, 2024

@redguardtoo , I solved the whole timing issue with the following code.

(use-package elpa-mirror
  :ensure elpa-mirror
  :config
  (progn
    (setq dotemacs-backup-elpa-directory (concat user-emacs-directory ".backup-elpa/"))
    (setq elpamr-default-output-directory dotemacs-backup-elpa-directory)
    (run-at-time "15:00" 86400 'elpamr-create-mirror-for-installed)))

(use-package f
  :ensure f
  :config
  (progn
    (unless (f-exists? dotemacs-backup-elpa-directory)
      (f-mkdir dotemacs-backup-elpa-directory)
      (elpamr-create-mirror-for-installed))))

It works pretty well. I'll be closing this issue. Thanks for your help, and once again great package -- I sure hope it helps negate any issues if melpa is down again!

from elpa-mirror.

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.