spacemacs/contrib/dash/README.md

69 lines
2.1 KiB
Markdown
Raw Normal View History

2015-01-14 06:54:44 +00:00
# dash contribution layer for Spacemacs
![logo](img/dash.png)
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
**Table of Contents**
- [dash contribution layer for Spacemacs](#dash-contribution-layer-for-spacemacs)
- [Description](#description)
- [Install](#install)
- [Dash](#dash)
2015-01-14 06:54:44 +00:00
- [Key bindings](#key-bindings)
- [TODO](#todo)
- [Check zeal](#check-zeal)
- [Check helm-dash](#check-helm-dash)
2015-01-14 06:54:44 +00:00
<!-- markdown-toc end -->
**This layer works only on OS X for the moment**
2015-01-14 06:54:44 +00:00
## Description
[dash][] is a great tool for quick access to various sets of documentation.
[dash-at-point][] is the package used to integrate `dash` in Emacs. It will try
to intelligently guess specific docsets to use based off of your current mode.
2015-01-14 06:54:44 +00:00
## Install
To use this contribution add it to your `~/.spacemacs`
```elisp
2015-02-18 03:36:12 +00:00
(setq-default dotspacemacs-configuration-layers '(dash))
2015-01-14 06:54:44 +00:00
```
### Dash
You have to install [dash][] on your machine.
It is recommended to set the `HUD mode` in your Dash application preferences
when using this layer.
See the documentation [dash-at-point][dash-at-point-usage] for more information
on customizing specific docsets for modes.
2015-01-14 06:54:44 +00:00
## Key bindings
Key Binding | Description
--------------------|---------------------------------------------------------
2015-01-14 06:54:44 +00:00
<kbd>SPC d d</kbd> | Lookup thing at point in Dash
<kbd>SPC d D</kbd> | Lookup thing at point in Dash within a specified Docset
### helm-dash
dash-at-point is linked to the GUI app and is only available for OSX. On linux,
[helm-dash](https://github.com/areina/helm-dash) is used instead. It requires no app.
You can use `dash/helm-dash-docset-newpath` to set the location path of your docsets.
## TODO
### Check zeal
[zeal][] is an open source alternative to dash with Emacs integration available.
2015-01-14 06:54:44 +00:00
[dash]: http://kapeli.com/dash
[dash-at-point]: https://github.com/stanaka/dash-at-point
[dash-at-point-usage]: https://github.com/stanaka/dash-at-point#Usage
2015-01-14 06:54:44 +00:00
[helm-dash]: https://github.com/areina/helm-dash
[zeal]: http://zealdocs.org/