I am on a fresh install of emacs 26.3, and I have the following in my init.el
:
(require 'package)
(add-to-list 'package-archives
'("melpa", "http://melpa.org/packages/") t)
(package-initialize)
When I go to refresh the package list (M-x package-refresh-contents
) I encounter the following error:
string-match("\\`https?:" ((\, "http://melpa.org/packages/")) nil)
package--download-one-archive(("melpa" (\, "http://melpa.org/packages/")) "archive-contents" t)
package--download-and-read-archives(t)
package-refresh-contents(t)
package-menu-refresh()
package-list-packages(nil)
funcall-interactively(package-list-packages nil)
call-interactively(package-list-packages record nil)
command-execute(package-list-packages record)
execute-extended-command(nil "package-list-packages" "package-lis")
funcall-interactively(execute-extended-command nil "package-list-packages" "package-lis")
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
What is happening and why doesn't this work? I have seen some chatter on related issues that
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
before (package-initialize)
should resolve this issue, but it doesn't.