I am starting to build up a .emacs
file to be used as a development environment within Docker containers. I get this error when starting emacs-nox in a Docker container.
Error (use-package): Failed to install magit: Package `magit-' is unavailable
Error (use-package): Cannot load magit
Here is the contents of my .emacs
:
;; require package
(require 'package)
;; add melpa stable
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/"))
;; add melpa
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/"))
;; Initialise packages
(package-initialize)
;; get latest package information
(package-refresh-contents)
;; add use package
;; so packages can automatically be installed
;; required for reuse across computer or docker containers
(package-install 'use-package)
;; add magit for git
(use-package magit
:ensure t
:pin melpa-stable)
M-x package-refresh-contents
and try again?M-x package-refresh-contents
and thenM-x eval-region
on(use-package magit :ensure t :pin melpa-stable)
. I get the same error message.magit
usingM-x package-install RET magit
?