Documentation moved! The Cask documentation moved to http://cask.readthedocs.org. This documentation is kept for historical purposes and not updated anymore. Please consult the current documentation.

DSL



source

Add a package mirror.

(source ALIAS)
(source NAME URL)

Example:

(source melpa)
(source "melpa" "http://melpa.milkbox.net/packages/")

Available aliases:

package

Define this package (used only for package development).

(package NAME VERSION DESCRIPTION)

Example:

(package "ecukes" "0.2.1" "Cucumber for Emacs.")

package-file

Define this package and its runtime dependencies from the package headers of a file (used only for package development). The name of the file is relative to the directory containing the Cask file.

(package-file FILENAME)

Example:

(package-file "foo.el")

depends-on

Add a dependency.

(depends-on NAME [ARGS])

Example:

(depends-on "ecukes")
(depends-on "magit" "0.8.1")
(depends-on "magit" :git "https://github.com/magit/magit.git")
(depends-on "magit" :git "https://github.com/magit/magit.git" :ref "7j3bj4d")
(depends-on "magit" :git "https://github.com/magit/magit.git" :branch "next")
(depends-on "magit" :git "https://github.com/magit/magit.git" :files ("*.el" (:exclude "magit-svn.el")))

development

Set scope to development.

(development [DEPENDENCIES])

Example:

(development
 (depends-on "ecukes")
 (depends-on "ert-runner"))

files

Specify list of files that are included in this project.

(files [FILES])

Example:

(files "foo.el")
(files "foo.el" "foo-core.el")