Merge pull request #7 from commercialhaskell/use-package

Add a section on use-package also.
This commit is contained in:
Kostiantyn Rybnikov 2015-03-06 10:44:49 +02:00
commit ba31d9e6a0

View file

@ -26,7 +26,7 @@ able to use it, you can get a very nice development environment.
### Prerequisites ### Prerequisites
#### Cask #### Cask / use-package
It's assumed you have modern package manager Cask installed. You can It's assumed you have modern package manager Cask installed. You can
install it by following the install it by following the
@ -53,6 +53,22 @@ And check that your `~/.emacs` file has:
After adding dependencies to your `Cask` file, run `cask install` in After adding dependencies to your `Cask` file, run `cask install` in
that directory. that directory.
If instead of `Cask` you are using `use-package` to manage your
package, then make sure that you have this in your `init.el` file:
```elisp
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize)
(require 'use-package)
```
Make sure that you install `use-package` from the package manager.
#### exec-path-from-shell #### exec-path-from-shell
On MacOS X you will also need On MacOS X you will also need