2015-06-12 20:59:07 +00:00
#+TITLE : Dash contribution layer for Spacemacs
2015-11-08 18:04:44 +00:00
#+HTML_HEAD_EXTRA : <link rel="stylesheet" type="text/css" href="../../../css/readtheorg.css" />
2015-06-10 16:44:30 +00:00
[[file:img/dash.png ]]
2015-06-12 20:59:07 +00:00
[[file:img/zeal.png ]]
2015-10-30 11:20:58 +00:00
* Table of Contents :TOC_4_org:noexport:
- [[Description ][Description ]]
- [[Install ][Install ]]
- [[Dash (OS X) ][Dash (OS X) ]]
- [[Zeal (Linux & Windows) ][Zeal (Linux & Windows) ]]
- [[Check Documentation for x-at-point ][Check Documentation for x-at-point ]]
- [[Key bindings ][Key bindings ]]
- [[helm-dash ][helm-dash ]]
- [[TODOs ][TODOs ]]
- [[Check zeal ][Check zeal ]]
- [[Make helm-dash use zeal or dash docsets by default. ][Make helm-dash use zeal or dash docsets by default. ]]
2015-06-10 16:44:30 +00:00
* Description
2015-06-12 20:59:07 +00:00
+*This layer works only on OS X for the moment*+
- [[http://kapeli.com/dash][dash]] :: Is a great tool for quick access to various sets of documentation,
only available in OS X.
- [[https://github.com/stanaka/dash-at-point][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-06-10 16:44:30 +00:00
2015-06-12 20:59:07 +00:00
- [[http://zealdocs.org/][zeal]] :: Zeal is an offline documentation browser inspired by Dash,
available for Linux and Windows.
2015-06-10 16:44:30 +00:00
2015-06-12 20:59:07 +00:00
- [[https://github.com/jinzhu/zeal-at-point][zeal-at-point]] :: Run zeal-at-point to search the word at point (or string in
region), then Zeal is launched and search the word. Use
prefix argument C-u to edit the search string first.
2015-06-10 16:44:30 +00:00
* Install
To use this contribution add it to your =~/.spacemacs=
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(dash))
#+END_SRC
2015-06-12 20:59:07 +00:00
** Dash (OS X)
2015-06-10 16:44:30 +00:00
You have to install [[http://kapeli.com/dash ][dash ]] on your machine.
It is recommended to set the =HUD mode= in your Dash application preferences
when using this layer.
2015-06-12 20:59:07 +00:00
** Zeal (Linux & Windows)
You have to install [[http://zealdocs.org/ ][zeal ]] on your machine.
Then install the docsets you use more frequently
** Check Documentation for x-at-point
See the documentation [[https://github.com/stanaka/dash-at-point#Usage ][dash-at-point-usage ]] , or [[https://github.com/jinzhu/zeal-at-point ][zeal-at-point ]] for more
information on customizing specific docsets for modes.
2015-06-10 16:44:30 +00:00
* Key bindings
2015-06-12 20:59:07 +00:00
| Key Binding | Description |
|-------------+-----------------------------------------------------------------|
| ~SPC d d~ | Lookup thing at point in Dash or Zeal |
| ~SPC d D~ | Lookup thing at point in Dash or Zeal within a specified Docset |
| ~SPC d h~ | Lookup thing at point in helm-dash |
| ~SPC d H~ | Lookup thing at point in helm-dash within a specified Docset |
2015-06-10 16:44:30 +00:00
** helm-dash
2015-06-12 20:59:07 +00:00
=dash-at-point= is linked to the GUI app and is only available for OSX. On
linux, you can use =zeal-at-point= which is linked to the GUI app too, but it's
open source.
Or you can use [[https://github.com/areina/helm-dash ][helm-dash ]] instead, it requires no app. You can use
=dash/helm-dash-docset-newpath= to set the location path of your docsets.
2015-06-10 16:44:30 +00:00
2015-06-10 21:16:01 +00:00
* TODOs
2015-06-10 16:44:30 +00:00
2015-06-12 20:59:07 +00:00
** DONE Check zeal
CLOSED: [2015-06-12 Fri 16:30]
2015-06-10 16:44:30 +00:00
[[http://zealdocs.org/ ][zeal ]] is an open source alternative to dash with Emacs integration available.
2015-06-12 20:59:07 +00:00
** TODO Make helm-dash use zeal or dash docsets by default.