In the last command I forgot to drop the -Q. But I guess it works either way.
On 22 August 2016 at 12:25, Jorge <jorge13...@gmail.com> wrote: > On 15 August 2016 at 14:29, Cook, Malcolm <m...@stowers.org> wrote: >> emacs -Q -batch -eval "(progn (require 'package) (add-to-list >> 'package-archives '(\"org\" . \"http://orgmode.org/elpa/\")) >> (package-initialize) (package-refresh-contents) (package-install >> 'org-plus-contrib))" > Here I plan to drop the "-Q" (because --batch already implies -q, > which I think is enough). So my command would be > emacs --batch --eval "(progn (require 'package) (add-to-list > 'package-archives '(\"org\" . \"http://orgmode.org/elpa/\")) > (package-initialize) (package-refresh-contents) (package-install > 'org-plus-contrib))" > >> Note: I use org-plus-contrib from melpa instead of org. If you want just >> org, you could simply: >> >> emacs -Q -batch -eval "(progn (require 'package) >> (package-initialize) (package-refresh-contents) (package-install >> 'org-plus-contrib))" > > Would not it be > emacs -Q --batch --eval "(progn (require 'package) > (package-initialize) (package-refresh-contents) (package-install > 'org))" > ? > > > -- > - I am Brazilian. I apologize for possibly bad English and I welcome > corrections. > - Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z. > - Free software for Android: https://f-droid.org/ -- - I am Brazilian. I apologize for possibly bad English and I welcome corrections. - Please adopt free formats like PDF, ODF, LaTeX, Vorbis, Opus, WebM and 7z. - Free software for Android: https://f-droid.org/