2015-12-02 14:23:39 +00:00
#+TITLE : Dash layer
2015-11-08 18:04:44 +00:00
2019-05-02 21:49:30 +00:00
#+TAGS : layer|reader
2015-06-10 16:44:30 +00:00
[[file:img/dash.png ]]
2015-06-12 20:59:07 +00:00
[[file:img/zeal.png ]]
2019-05-07 20:05:06 +00:00
* Table of Contents :TOC_5_gh:noexport:
2017-05-22 14:16:12 +00:00
- [[#description ][Description ]]
2018-01-07 22:26:54 +00:00
- [[#features ][Features: ]]
2017-05-22 14:16:12 +00:00
- [[#install ][Install ]]
2019-10-13 05:27:17 +00:00
- [[#dash-macos ][Dash (macOS) ]]
2018-01-07 22:26:54 +00:00
- [[#sqlite3 ][Sqlite3 ]]
2017-05-22 14:16:12 +00:00
- [[#zeal-linux--windows ][Zeal (Linux & Windows) ]]
2019-06-30 20:44:39 +00:00
- [[#configuration ][Configuration ]]
2018-01-07 22:26:54 +00:00
- [[#word-at-point ][Word at point ]]
2017-05-22 14:16:12 +00:00
- [[#key-bindings ][Key bindings ]]
2015-06-10 16:44:30 +00:00
* Description
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 06:03:09 +00:00
This layer integrates offline API browsers into Emacs. It provides one for macOS, Linux and Windows.
2015-06-12 20:59:07 +00:00
2018-01-07 22:26:54 +00:00
** Features:
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 06:03:09 +00:00
- Searching for word at point in offline API browser's UI.
- Integration of offline API browser search results in Helm and Ivy.
- Support for [[https://kapeli.com/dash ][dash ]] offline API browser for macOS.
- Support for [[https://zealdocs.org/ ][zeal ]] offline API browser for Linux.
2015-06-10 16:44:30 +00:00
* Install
2016-01-06 05:21:55 +00:00
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
2016-11-21 23:32:00 +00:00
file.
2015-06-10 16:44:30 +00:00
2019-10-13 05:27:17 +00:00
** Dash (macOS)
2017-04-25 15:42:58 +00:00
You have to install [[https://kapeli.com/dash ][dash ]] on your machine.
2015-06-10 16:44:30 +00:00
It is recommended to set the =HUD mode= in your Dash application preferences
2016-04-13 03:31:38 +00:00
when using this layer.
2015-06-10 16:44:30 +00:00
2018-01-07 22:26:54 +00:00
*** Sqlite3
2017-04-25 15:42:58 +00:00
Helm Dash [[https://github.com/areina/helm-dash#user-content-requirements ][requires ]] sqlite3 to be installed to function properly.
2016-10-20 16:36:39 +00:00
2015-06-12 20:59:07 +00:00
** Zeal (Linux & Windows)
2017-04-25 15:42:58 +00:00
You have to install [[https://zealdocs.org/ ][zeal ]] on your machine.
2015-06-12 20:59:07 +00:00
Then install the docsets you use more frequently
2019-06-30 20:44:39 +00:00
* 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:
2019-07-03 08:44:16 +00:00
2019-06-30 20:44:39 +00:00
#+BEGIN_SRC emacs-lisp
2019-07-03 08:44:16 +00:00
(dash :variables
dash-autoload-common-docsets nil)
2019-06-30 20:44:39 +00:00
#+END_SRC
To change the location of the installed docsets, set:
2019-07-03 08:44:16 +00:00
2019-06-30 20:44:39 +00:00
#+BEGIN_SRC elisp
2019-07-03 08:44:16 +00:00
(dash :variables
helm-dash-docset-newpath "~/.docsets")
2019-06-30 20:44:39 +00:00
#+END_SRC
2018-01-07 22:26:54 +00:00
* Word at point
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 06:03:09 +00:00
=dash-at-point= and =zeal-at-point= will search for the word at point in the respective offline API browser.
2019-05-26 20:58:52 +00:00
The result will be displayed in the offline browser's UI.
2018-01-07 22:26:54 +00:00
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=
2019-05-16 15:53:58 +00:00
and show the details in a browser. To do so [[https://github.com/dash-docs-el/helm-dash ][helm-dash ]] can be used for =helm= and [[https://github.com/dash-docs-el/counsel-dash ][counsel-dash ]] for =ivy= .
To get them working it is necessary to set =dash-docs-docset-newpath= to the location of your docsets.
#+BEGIN_SRC elisp
(dash :variables
dash-docs-docset-newpath "~/.local/share/Zeal/Zeal/docsets")
#+END_SRC
2018-01-07 22:26:54 +00:00
For more details please check [[https://github.com/stanaka/dash-at-point#Usage ][dash-at-point-usage ]] or [[https://github.com/jinzhu/zeal-at-point ][zeal-at-point ]].
2015-06-10 16:44:30 +00:00
* Key bindings
2018-12-05 03:03:03 +00:00
| Key binding | Description |
2015-06-12 20:59:07 +00:00
|-------------+-----------------------------------------------------------------|
2020-04-17 21:43:42 +00:00
| ~SPC a z d~ | Lookup thing at point in Dash or Zeal |
| ~SPC a z D~ | Lookup thing at point in Dash or Zeal within a specified Docset |
| ~SPC a z h~ | Lookup thing at point in helm-dash or counsel-dash |
| ~SPC a z H~ | Lookup in helm-dash or counsel-dash within a specified Docset |