I am trying to set up emacs (on cygwin / Win10) to handle JSON.
I started with joshwnj/json-mode and was stoked to discover that emacs will now install its own dependencies from online repos. Fab stuff.
I can run M-x package-install
but I notice it logs the message:
Contacting host: elpa.gnu.org:80
Failed to download ‘gnu’ archive.
And when I type in json-mode
, emacs says there's no match. Is this a connection problem? Should I see an HTTP error somewhere?
joshwnj/json-mode says I need the MELPA repository set up.
According to this documentation for MELPA I need to identify if I'm using package.el (which looks good) and work out if the given lisp code is in place.
Is there a command I can run in emacs to tell me if this code is in place?
Trying to following on and ignoring that issue, I tried M-x package-list-packages
and got the following error:
You can run the command ‘package-list-packages’ with M-x pa-l- RET
Waiting for refresh to finish...
Package refresh done
No packages to upgrade.
error in process sentinel: Error retrieving: http://elpa.gnu.org/packages/archive-contents (error connection-failed "failed with code 10060
" :host "elpa.gnu.org" :service 80)
error in process sentinel: Error retrieving: http://elpa.gnu.org/packages/archive-contents (error connection-failed "failed with code 10060
" :host "elpa.gnu.org" :service 80)
Is the sentinel
process critical? Did the package refresh work?
What should I try next?