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

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

[elpa] externals/perl-doc 4fab9f5d55 3/5: Add README.md after successful


From: ELPA Syncer
Subject: [elpa] externals/perl-doc 4fab9f5d55 3/5: Add README.md after successful test under Windows
Date: Sat, 6 Aug 2022 18:58:26 -0400 (EDT)

branch: externals/perl-doc
commit 4fab9f5d55f0d5983ccdbecb635745ded7afcad2
Author: Harald Jörg <haj@posteo.de>
Commit: Harald Jörg <haj@posteo.de>

    Add README.md after successful test under Windows
---
 README.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/README.md b/README.md
index eaf759a625..46f3525fe5 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,51 @@
 # emacs-perl-doc
 Read nicely rendered Perl documentation in Emacs
+
+This file contains a command to read Perl documentation in Emacs.
+It uses two external commands which come with Perl: `perldoc` to
+locate the Perl documentation for the Perl modules installed on
+your system, and `pod2html` to format the documentation to HTML.
+This HTML version is then displayed using Emacs' "simple HTML
+renderer" shr.
+
+## Motivation
+
+Perl documentation is written in a markup format called POD ([Plain
+Old Documentation](https://perldoc.perl.org/perlpod) and is usually
+converted to other formats for human consumption.  The documentation
+used to be available in Emacs for a long time in 'info' or 'man'
+format.  However, Perl does no longer ship 'info' files, and the
+software available from CPAN never did.  'man' is not available on all
+platforms and allows only rather restricted formatting, most notably
+linking between documents does not work.
+
+On the other hand, Perl provides a converter from POD to HTML.
+HTML is well supported by Emacs and is well suited for presentation
+of structured documents.
+
+The user visible benefits over the other formats are:
+ * Works nicely on platforms which do not have man
+ * Unlike with 'man', Hyperlinks between POD documents work
+   and resolve to POD documentation on your system, no web server required.
+ * Makes use of Emacs faces: variable-pitch font for text,
+   fixed-pitch for code, italics for, well, italics
+ * Uses the buffer's full width and can also be used with
+   narrow buffers
+
+## Installation and Configuration
+
+This library works with Emacs 28.  More precise, it requires
+cperl-mode.el from Emacs 28 which is available from the Emacs
+repository:
+[cperl-mode.el](https://git.savannah.gnu.org/cgit/emacs.git/plain/lisp/progmodes/cperl-mode.el),
+and Emacs 27.
+
+The file perl-doc.el is not (yet) available from any Emacs package
+repository.  You can store it somewhere on the 'load-path' of your
+Emacs.
+
+The file comes with two customization items
+`perl-doc-pod2html-program` and `perl-doc-perldoc-program` which point
+to the pod2html and perldoc programs, respectively.  On many platforms
+the defaults will just work, though you may need to install a separate
+package for Perl documentation (e.g. perl-doc for Debian/Ubuntu).



reply via email to

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