pyr / emenv

dependency handling for emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

emenv: emacs-lisp dependency fetcher

emenv is a dependency fetcher for emacs-lisp. It is meant as a companion to recent emacsen and does the following:

  • Fetching ELPA package information from common sources (MELPA-stable, MELPA, GNU, Marmalade, Org)
  • Support for both file and tar packages
  • Resolving dependencies, accounting for repository preferences
  • Creation of an init file for your emacs environment

emenv does not rely on emacs-lisp at all, it is a standalone program with a simple emacs-lisp reader, sufficient to parse the syntax of the config file and the syntax of ELPA archives

Building

emenv is written in go, as such, you will only need to fetch this repository and then run go build. The resulting file can be copied on your PATH.

Configuration

(source my-repo "https://elpa.example.com/packages")
(prefer my-repo omelpa-stable gnu melpa)
(package ag)
(package projectile)
(package auto-complete (from melpa-stable))

Wiring in your init.el

If your Emenv file is in ~/.emacs.d and you ran emenv there, put the following in your init.el file:

(load-file "~/.emacs.d/.emenv/load.el)

Running

You can fetch latest repository information with:

emenv sync

You can then install packages with:

emenv install

About

dependency handling for emacs


Languages

Language:Go 100.0%