emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/devdocs fa8a49dd7a 1/2: Update README


From: ELPA Syncer
Subject: [elpa] externals/devdocs fa8a49dd7a 1/2: Update README
Date: Sun, 20 Feb 2022 11:57:26 -0500 (EST)

branch: externals/devdocs
commit fa8a49dd7a99a52eb5781d86521eb5c720e2c05f
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>

    Update README
---
 README.org | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 52 insertions(+), 12 deletions(-)

diff --git a/README.org b/README.org
index c71080613d..a5c3b80b28 100644
--- a/README.org
+++ b/README.org
@@ -4,37 +4,77 @@
 #+html: <a href="https://melpa.org/#/devdocs";><img alt="MELPA" 
src="https://melpa.org/packages/devdocs-badge.svg"/></a>
 
 devdocs.el is a documentation viewer for Emacs similar to the built-in
-Info browser, but geared towards documentation obtained from the
-[[https://devdocs.io][DevDocs]] website.  The stable version is available from 
[[https://elpa.gnu.org/packages/devdocs.html][GNU ELPA]] and a
+Info browser, but geared towards documentation distributed by the
+[[https://devdocs.io][DevDocs]] website.  Currently, this covers over 500 
versions of 188
+different software components.
+
+The stable version of the package is available from 
[[https://elpa.gnu.org/packages/devdocs.html][GNU ELPA]] and a
 development version is available from [[https://melpa.org/#/devdocs][MELPA]]; 
to install, type =M-x
 package-install RET devdocs=.
 
 #+caption: image
 
[[https://user-images.githubusercontent.com/6500902/135726213-683b1f7d-5502-4afa-a549-c1aedaad8519.png]]
 
+** Basic usage
+
 To get started, download some documentation with =M-x
-devdocs-install=.  This will first query https://devdocs.io for the
-available documents and save the selected one to disk.  Once you have
-the desired documents at hand, call =M-x devdocs-lookup= to search for
-entries.
+devdocs-install=.  This will query https://devdocs.io for the
+available documents and save the selected one to disk.  To read the
+installed documentation, there are two options:
+
+- =devdocs-peruse=: Select a document and display its first page.
+- =devdocs-lookup=: Select an index entry and display it.
+
+It's handy to have a keybinding for the latter command.  One
+possibility, in analogy to =C-h S= (=info-lookup-symbol=), is
+
+#+begin_src elisp
+  (global-set-key (kbd ("C-h D")) 'devdocs-lookup)
+#+end_src
 
 In any given buffer, the first call to =devdocs-lookup= will query for
 a list of documents to search (you can select more than one option by
 entering a comma-separated list).  This selection will be remembered
 in subsequent calls to =devdocs-lookup=, unless a prefix argument is
 given; in this case you can select a new list of documents.
-Alternatively, you can set the =devdocs-current-docs= variable
-directly, say via 
[[https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html][dir-local
 variables]] or a mode hook:
+
+In the =*devdocs*= buffer, navigation keys similar to Info and
+=*Help*= buffers are available; press =C-h m= for details.  Internal
+hyperlinks are opened in the same viewing buffer, and external links
+are opened as =browse-url= normally would.
+
+** Managing documents
+
+To manage the collection of installed documents, use the following
+commands:
+
+- =devdocs-install=: Download and install (or reinstall) a document
+  distributed by [[https://devdocs.io]].
+- =devdocs-delete=: Remove an installed document.
+- =devdocs-update-all=: Download and reinstall all installed documents
+  for which a newer version is available.
+
+In some cases, variants of a document are available for each (major)
+version.  It is possible to install several versions in parallel.
+
+Documents are installed under =devdocs-data-dir=, which defaults to
+=~/.emacs.d/devdocs=.  To completely uninstall the package, remove
+this directory.
+
+** Setting the default documents for a collection of buffers
+
+You may wish to select a predefined list of documents in all buffers
+of a certain major mode or project.  To achieve this, set the
+=devdocs-current-docs= variable directly, say via 
[[https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html][dir-local
 variables]]
+or a mode hook:
 
 #+begin_src elisp
   (add-hook 'python-mode-hook
             (lambda () (setq-local devdocs-current-docs '("python~3.9"))))
 #+end_src
 
-In the =*devdocs*= buffer, navigation keys similar to Info and
-=*Help*= buffers are available; press =C-h m= for details.  Internal
-hyperlinks are opened in the same viewing buffer, and external links
-are opened as =browse-url= normally would.
+As usual, calling =devdocs-lookup= with a prefix argument redefines
+the selected documents for that specific buffer.
 
 ** Contributing
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]