branch: externals/doc-view-follow
commit e8deea855f470a931354f4c8280fb2ecfb04c588
Author: Paul Nelson <[email protected]>
Commit: Paul Nelson <[email protected]>
Improve docstring of doc-follow-modes variable
* doc-follow.el (doc-follow-modes): Reformat and clarify the docstring.
---
doc-follow.el | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/doc-follow.el b/doc-follow.el
index 4d06e17225..19510397fd 100644
--- a/doc-follow.el
+++ b/doc-follow.el
@@ -54,13 +54,14 @@
:current (lambda () (pdf-view-current-page))
:max (lambda () (pdf-cache-number-of-pages))))
"Alist of supported major modes and relevant functions.
-Each entry has the format:
-(MAJOR-MODE
- :goto GOTO-PAGE-FUNCTION
- :next NEXT-PAGE-FUNCTION
- :prev PREV-PAGE-FUNCTION
- :current FUNCTION-RETURNING-CURRENT-PAGE
- :max FUNCTION-RETURNING-MAX-PAGE)
+Each entry has the format: (MAJOR-MODE . CONFIG), where CONFIG is a list
+with entries:
+
+:goto GOTO-PAGE-FUNCTION
+:next NEXT-PAGE-FUNCTION
+:prev PREV-PAGE-FUNCTION
+:current FUNCTION-RETURNING-CURRENT-PAGE
+:max FUNCTION-RETURNING-MAX-PAGE
Other packages can add support for additional document viewing modes
by adding entries to this list.")