Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] Alternative for "doom quickstart"? #1766

Closed
ezchi opened this issue Sep 8, 2019 · 4 comments
Closed

[QUESTION] Alternative for "doom quickstart"? #1766

ezchi opened this issue Sep 8, 2019 · 4 comments
Labels
is:support A request for user support: questions, how-to's, and discussions module:core:cli Pertains to the `$ doom` script status:resolved Issue was addressed internally

Comments

@ezchi
Copy link

ezchi commented Sep 8, 2019

raw.githubusercontent.com is blocked by proxy. So is it an alternative for "doom quckstart"?
elpa and github repo clone are all fine.

@ezchi ezchi added the is:support A request for user support: questions, how-to's, and discussions label Sep 8, 2019
@hlissner
Copy link
Member

hlissner commented Sep 9, 2019

If you run ~/.emacs.d/bin/doom help install (doom install replaced doom quickstart in later versions of Doom Emacs), it will list what exactly this command does. To quote it:

  1. Creates DOOMDIR at ~/.doom.d,
  2. Copies ~/.emacs.d/init.example.el to DOOMDIR/init.el (if it doesn't exist),
  3. Creates dummy files for DOOMDIR/{config,packages}.el,
  4. Prompts you to generate an envvar file (same as 'doom env'),
  5. Installs any dependencies of enabled modules (specified by DOOMDIR/init.el),
  6. And prompts to install all-the-icons' fonts

Here is what it'd look like translated into shell commands:

git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
mkdir -p ~/.doom.d
cp ~/.emacs.d/init.example.el ~/.doom.d/init.el
~/.emacs.d/bin/doom refresh
~/.emacs.d/bin/doom env   # if you need an envvar file, 
                          # see `doom help env` for details

Then run emacs and run M-x all-the-icons-install-fonts to install icon fonts, if you'd like.

@hlissner hlissner added the module:core:cli Pertains to the `$ doom` script label Sep 9, 2019
@ezchi
Copy link
Author

ezchi commented Sep 9, 2019

Bad news is the "doom refresh" command also tries to get straight.el from raw.gthbusercontent.com.

Using a proxy for https...
Error: (error (void-variable peer))
(eval peer nil)
(elisp--eval-last-sexp t)
(eval-last-sexp t)
(eval-print-last-sexp)
(save-current-buffer (set-buffer (url-retrieve-synchronously (format "https://raw.githubusercontent.com/raxod502/straight.el/%s/install.el" straight-repository-branch) 'silent 'inhibit-cookies)) (goto-char (point-max)) (eval-print-last-sexp))

@ezchi
Copy link
Author

ezchi commented Sep 9, 2019

I found a workaround. Just clone the straight.el to <doom-emacs>/.local/straight/repos/. Then everything works.

@ezchi ezchi closed this as completed Sep 9, 2019
@hlissner
Copy link
Member

hlissner commented Sep 9, 2019

Then try this:

git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
mkdir -p ~/.doom.d
cp ~/.emacs.d/init.example.el ~/.doom.d/init.el

# Install straight manually
mkdir -p ~/.emacs.d/.local/straight/repos
git clone -b develop https://github.com/raxod502/straight.el ~/.emacs.d/.local/straight/repos/straight.el

~/.emacs.d/bin/doom refresh
~/.emacs.d/bin/doom env   # if you need an envvar file, 
                          # see `doom help env` for details

@hlissner hlissner added the status:resolved Issue was addressed internally label Sep 9, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
is:support A request for user support: questions, how-to's, and discussions module:core:cli Pertains to the `$ doom` script status:resolved Issue was addressed internally
Projects
None yet
Development

No branches or pull requests

2 participants