Comments (3)
upgrade to v1.2.2, check README
from elpa-mirror.
@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.
@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)
- 不能在windows下使用,使用原生windows emacs,已经安装cygwin,并把cygwin/bin加入$PATH HOT 2
- not working for doom-emacs develop branch HOT 16
- missing org packages HOT 1
- wrong BEGIN_SRC block in README.org HOT 1
- PAXHeader cause the package installation failed HOT 3
- per package ignores is maybe needed HOT 5
- No tar files created HOT 9
- Not work on win10 HOT 3
- Creating TAR Error HOT 9
- Creating pipe Too many open files on windows 10 HOT 5
- tar: unrecognized option '--sort=name' HOT 1
- Directory name format recognition problem HOT 4
- /usr/bin/tar: root\:0: Invalid owner HOT 1
- Mirror not Showing up in Emacs under Archives HOT 4
- vagrant-tramp package produces a broken mirror. HOT 3
- windows7下执行elpamr-create-mirror-for-installed命令后,只是在myelpa文件生成了archive-contents文件,没有包的tar文件, HOT 1
- [feature request] straight.el support, please HOT 2
- Is there a way to update the mirror without updating the Emacs installation it's based on? HOT 1
- M-x package-install error HOT 3
- [feature request] support emacs official package 'pacakge-vc.el' HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elpa-mirror.