Join GitHub today
Experimental support for using Borg alongside Package.el #46
Borg can now be installed as a secondary package manager alongside
While it is possible (and in fact a major goal of this update) to install Borg in an existing configuration that relies on
First create a new temporary repository in e.g.
Put this into the
(setq user-init-file (or load-file-name buffer-file-name)) (setq user-emacs-directory (file-name-directory user-init-file)) (require 'package) (add-to-list 'package-archives (cons "melpa" "https://melpa.org/packages/") t) (package-initialize) (package-refresh-contents)
If you are modifying an existing configuration, then make sure you put that at the top of the file and that you remove all existing
Then start a new Emacs instance using that configuration.
You could start using
(package-initialize 'no-activate) (package-activate 'borg) (require 'borg-elpa) (borg-elpa-initialize)
Quit Emacs and start a new instance.
Install a package using Borg. (After the first
Have a look at the
Once you have installed
(use-package magit :config (magit-add-section-hook 'magit-status-sections-hook 'magit-insert-modules 'magit-insert-stashes 'append)
EDIT: Building a package using Borg currently fails if a dependency was installed using Package.el. I am working on a fix.
EDIT: When using Borg as the primary package manager, then something like this should work:
(progn ; `borg' (setq epkg-repository "~/git/emacs/epkgs/") ;; (package-initialize) (add-to-list 'load-path (expand-file-name "lib/borg" user-emacs-directory)) (require 'borg-elpa) (borg-elpa-initialize))