This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+readers/dash
Miciah Masters 97ba556142 Various documentation copy-edits
Follow up the changes in the previous commit with some minor improvements
to formatting, grammar, spelling, and wording.

* layers/+distributions/spacemacs-docker/README.org: Replace "+" with
"and".
* layers/+email/mu4e/README.org: Use full sentences in the comments in the
mu4e-alert example.
* layers/+intl/japanese/README.org: Use verbatim markers for names of
files, functions, packages, and variables.  Capitalize "Linux".
* layers/+os/osx/README.org: Capitalize "Emacs", "Vim", and "Evil".
* layers/+os/osx/config.el (osx-command-as, osx-use-dictionary-app):
* layers/+os/osx/keybindings.el (spacemacs/system-is-mac): Improve
docstrings.
* layers/+readers/dash/README.org: Capitalize "API", "Helm", and "Ivy".
* layers/+spacemacs/spacemacs-defaults/config.el
(delete-by-moving-to-trash): Use full sentences in comment.
* layers/+spacemacs/spacemacs-defaults/funcs.el
(spacemacs/toggle-frame-fullscreen-non-native): Improve docstrings.
2019-10-13 12:04:59 +02:00
..
img New layer category +readers, move layers: 2018-06-06 00:36:10 -04:00
config.el Update dash layer to reflect dash-docs merge 2019-09-17 20:02:49 +02:00
funcs.el Update dash layer to reflect dash-docs merge 2019-09-17 20:02:49 +02:00
packages.el Update dash layer to reflect dash-docs merge 2019-09-17 20:02:49 +02:00
README.org Various documentation copy-edits 2019-10-13 12:04:59 +02:00

Dash layer

/TakeV/spacemacs/media/commit/ea11a256fdc39ca1a63c0c9c7f105a7e253d2339/layers/+readers/dash/img/dash.png

/TakeV/spacemacs/media/commit/ea11a256fdc39ca1a63c0c9c7f105a7e253d2339/layers/+readers/dash/img/zeal.png

Description

This layer integrates offline API browsers into Emacs. It provides one for macOS, Linux and Windows.

Features:

  • Searching for word at point in offline API browser's UI.
  • Integration of offline API browser search results in Helm and Ivy.
  • Support for dash offline API browser for macOS.
  • Support for zeal offline API browser for Linux.

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add dash to the existing dotspacemacs-configuration-layers list in this file.

Dash (macOS)

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.

Sqlite3

Helm Dash requires sqlite3 to be installed to function properly.

Zeal (Linux & Windows)

You have to install zeal on your machine.

Then install the docsets you use more frequently

Configuration

By default, the dash layer will initialize all installed docsets to be active in all buffers. To disable this and opt-in to specific docsets for specific buffers, set:

  (dash :variables
        dash-autoload-common-docsets nil)

To change the location of the installed docsets, set:

  (dash :variables
        helm-dash-docset-newpath "~/.docsets")

Word at point

dash-at-point and zeal-at-point will search for the word at point in the respective offline API browser. The result will be displayed in the offline browser's UI.

However having to leave emacs to have a look at the search results may be a bit awkward. To help with this it is also possible to integrate the search results directly in helm or ivy and show the details in a browser. To do so helm-dash can be used for helm and counsel-dash for ivy.

To get them working it is necessary to set dash-docs-docset-newpath to the location of your docsets.

  (dash :variables
        dash-docs-docset-newpath "~/.local/share/Zeal/Zeal/docsets")

For more details please check dash-at-point-usage or zeal-at-point.

Key bindings

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 or counsel-dash
SPC d H Lookup in helm-dash or counsel-dash within a specified Docset