[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/devdocs ec4085a 1/2: Add autoloads
From: |
ELPA Syncer |
Subject: |
[elpa] externals/devdocs ec4085a 1/2: Add autoloads |
Date: |
Sat, 29 May 2021 17:57:08 -0400 (EDT) |
branch: externals/devdocs
commit ec4085a976eec6acf3e2f3d487c519c2a70df8a1
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>
Add autoloads
---
README.md | 5 ++---
devdocs.el | 4 ++++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index abb863a..a0249e0 100644
--- a/README.md
+++ b/README.md
@@ -22,9 +22,8 @@ Alternatively, you can set the `devdocs-current-docs` variable
directly, say via [dir-local variables] or a mode hook:
```elisp
-(with-eval-after-load 'evdocs
- (add-hook 'python-mode-hook
- (lambda () (add-to-list 'evdocs-current-docs "python~3.9"))))
+(add-hook 'python-mode-hook
+ (lambda () (setq-local devdocs-current-docs '("python~3.9"))))
```
In the `*devdocs*` buffer, navigation keys similar to Info and
diff --git a/devdocs.el b/devdocs.el
index b06b403..283bd8d 100644
--- a/devdocs.el
+++ b/devdocs.el
@@ -125,6 +125,7 @@ REFRESH, if non-nil, downloads the DevDocs document list
anew."
(file-exists-p
(expand-file-name "metadata" (expand-file-name doc devdocs-data-dir))))
+;;;###autoload
(defun devdocs-delete (doc)
"Delete DevDocs documentation.
DOC is a document slug."
@@ -137,6 +138,7 @@ DOC is a document slug."
(delete-directory dest t t)
(user-error (format "Documentation for `%s' is not installed" doc)))))
+;;;###autoload
(defun devdocs-install (doc)
"Download and install DevDocs documentation.
DOC is a document slug."
@@ -339,6 +341,7 @@ All entries of `devdocs-current-docs' are listed."
(thing-at-point 'symbol))
cands)))))
+;;;###autoload
(defun devdocs-lookup (&optional ask-docs)
"Look up a DevDocs documentation entry.
@@ -359,6 +362,7 @@ non-nil), first read a list of available documents and set
;;; Compatibility with the old devdocs package
+;;;###autoload
(defun devdocs-search (query)
"Search for QUERY in the DevDocs website."
(interactive (list (read-from-minibuffer