Adding Marmalade as Package Source
14,720
Use the package.el to be included with emacs24, as the ELPA version doesn't include package-archives
and support for multiple repositories.
It is found here (emacs24!): http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/lisp/emacs-lisp/package.el
Last emacs23 compatible version: http://repo.or.cz/w/emacs.git/blob/ba08b24186711eaeb3748f3d1f23e2c2d9ed0d09:/lisp/emacs-lisp/package.el
Drop it into your loadpath and settle for one type of loading (that is drop the lines after the comment).
Author by
kin1
Updated on June 07, 2022Comments
-
kin1 almost 2 years
I'm trying to add Marmalade as a package source, but when I do so I get the error:
Symbol's value as variable is void: package-archives.
Anyone know how to resolve this? Below is my.emacs
file.;;; This was installed by package-install.el. ;;; This provides support for the package system and ;;; interfacing with ELPA, the package archive. ;;; Move this code earlier if you want to reference ;;; packages in your .emacs. (when (load (expand-file-name "~/.emacs.d/elpa/package.el")) (package-initialize)) (add-to-list 'load-path (expand-file-name "~/.emacs.d")) (add-to-list 'load-path "~/.emacs.d/plugins") (add-to-list 'load-path "~/.emacs.d/plugins/color-theme") (add-to-list 'load-path "~/.emacs.d/plugins/groovy") (require 'package) (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/")) (package-initialize)
To install package.el
I ran the following code:
(let ((buffer (url-retrieve-synchronously "http://tromey.com/elpa/package-install.el"))) (save-excursion (set-buffer buffer) (goto-char (point-min)) (re-search-forward "^$" nil 'move) (eval-region (point) (point-max)) (kill-buffer (current-buffer))))
-
kin1 over 12 yearsI'm using emacs 23.3.1 and the package.el you linked to doesn't seem to work. Further, do you want me to drop all the lines after the comments? Or just *(when ... )?
-
Michael Markert over 12 yearsOh I forgot, backward compatibility was broken a few months ago, I added the last emacs23-compatible version to my post. As for dropping: Just the
when
and replace therequire
with theload
if you want to keep the path.