Skip to content

Latest commit

 

History

History
122 lines (86 loc) · 2.36 KB

05-dsl.md

File metadata and controls

122 lines (86 loc) · 2.36 KB
title layout permalink
DSL
default
dsl.html

DSL



source

Add a package mirror.

{% highlight cl %} (source ALIAS) (source NAME URL) {% endhighlight %}

Example:

{% highlight cl %} (source melpa) (source "melpa" "http://melpa.milkbox.net/packages/") {% endhighlight %}

Available aliases:

package

Define this package (used only for package development).

{% highlight cl %} (package NAME VERSION DESCRIPTION) {% endhighlight %}

Example:

{% highlight cl %} (package "ecukes" "0.2.1" "Cucumber for Emacs.") {% endhighlight %}

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.

{% highlight cl %} (package-file FILENAME) {% endhighlight %}

Example:

{% highlight cl %} (package-file "foo.el") {% endhighlight %}

depends-on

Add a dependency.

{% highlight cl %} (depends-on NAME [ARGS]) {% endhighlight %}

Example:

{% highlight cl %} (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"))) {% endhighlight %}

development

Set scope to development.

{% highlight cl %} (development [DEPENDENCIES]) {% endhighlight %}

Example:

{% highlight cl %} (development (depends-on "ecukes") (depends-on "ert-runner")) {% endhighlight %}

files

Specify list of files that are included in this project.

{% highlight cl %} (files [FILES]) {% endhighlight %}

Example:

{% highlight cl %} (files "foo.el") (files "foo.el" "foo-core.el") {% endhighlight %}