Small clean-up on use-package usage

This commit is contained in:
Kostiantyn Rybnikov 2015-03-06 10:47:53 +02:00
parent ba31d9e6a0
commit 383737c831

View file

@ -26,10 +26,10 @@ able to use it, you can get a very nice development environment.
### Prerequisites ### Prerequisites
#### Cask / use-package #### Cask (or use-package)
It's assumed you have modern package manager Cask installed. You can It's assumed in this tutorial you have modern package manager Cask installed.
install it by following the You can install it by following the
[cask user guide](http://cask.readthedocs.org/en/latest/index.html). For [cask user guide](http://cask.readthedocs.org/en/latest/index.html). For
older Emacs versions (< 24), please figure out other method of older Emacs versions (< 24), please figure out other method of
package-installation. package-installation.
@ -53,21 +53,20 @@ 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 If instead of `Cask` you are using [use-package](https://github.com/jwiegley/use-package)
package, then make sure that you have this in your `init.el` file: to manage your packages, then make sure that you have this in your `init.el` file:
```elisp ```elisp
(setq package-archives (setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/") '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/") ("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/"))) ("melpa" . "http://melpa.milkbox.net/packages/")))
(package-initialize) (package-initialize)
(require 'use-package) (require 'use-package)
``` ```
Make sure that you install `use-package` from the package manager. Make sure that you install `use-package` from the package manager. Following tutorial
should be straightforward.
#### exec-path-from-shell #### exec-path-from-shell